---
schema_version: "1"
id: 2682478f6b84ac09140b8f14b4edc93af6aade6657ed42aca81b549ad1b4b498
title: Sharing Rules
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/security_about_sharing_rules.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.security_about_sharing_rules.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a28931efd93f082849ff27baae18e30a8053119f8a0a1787fa6572cf1e4b693a
description: Use sharing rules to extend sharing access to users in public groups, roles, or territories. Sharing rules give particular users greater access by making automatic exceptions to your org-wide sharing settings.
products:
  - Security
  - Salesforce Platform
release: "264"
---
# Sharing Rules

Use sharing rules to extend sharing access to users in public groups, roles, or territories. Sharing rules give particular users greater access by making automatic exceptions to your org-wide sharing settings.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition">
      <colgroup>
        <col>
      </colgroup>
      <tbody>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic
            and Lightning Experience</td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;">
            <p>Available in: <strong>Professional</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>,
              <strong>Unlimited</strong>, and <strong>Developer</strong> Editions
            </p>
            <p style="margin-bottom:0;">See <a href="https://help.salesforce.com/s/articleView?id=platform.security_sharing_rule_considerations.htm&amp;release=264.0.0&amp;type=5" title="Review these considerations before using sharing rules.">Sharing Rule Considerations</a> for more information on availability.</p>
          </td>

        </tr>
      </tbody>
    </table>

![Tip](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-access-264-0-0-production-enus/a92be132-3cbc-412a-9262-130636120c14/images/icon_tip.png)

Tip Setup with Agentforce can help you manage sharing rules more efficiently. For more information, see [Setup with Agentforce](https://help.salesforce.com/s/articleView?id=xcloud.setup_agentforce_overview.htm&language=en_US) and [User Access Management in Setup with Agentforce](https://help.salesforce.com/s/articleView?id=xcloud.setup_agentforce_user_access.htm&language=en_US).

Watch how you can grant access to records using sharing rules.

Like role hierarchies, a sharing rule can never be stricter than your org-wide default settings. It simply allows greater access for particular users.

You can base a sharing rule on record ownership or other criteria. After you select which records to share, you define which groups or users to extend access to and what level of access they have. For example, you create a sharing rule that grants read only access to all leads owned by users in the Marketing Team role with users in the Sales Rep role for easier collaboration. Or, you create a rule that grants read and write access to any cases labeled as "Urgent" with a public group that contains users with specialized knowledge.

You can create sharing rules for custom objects and many standard objects, and different types of sharing rules depending on the object. For example, for accounts, you can create rules based on the account owner or other criteria, including account record types or field values. You then set the access level for accounts and their associated contracts, opportunities, cases, and optionally, contacts and orders.

The objects available for sharing rules depend on which Salesforce editions and features you have. You can see which objects are available on the Sharing Settings Setup page. You can define up to 300 total sharing rules for each object, including up to 50 criteria-based or guest user sharing rules, if available for the object.

- **[Sharing Rule Types](https://help.salesforce.com/s/articleView?id=platform.security_sharing_rule_types.htm&release=264.0.0&type=5)**  
    You can base a sharing rule on record ownership or other criteria.
- **[Create Sharing Rules](https://help.salesforce.com/s/articleView?id=platform.security_sharing_rules_create.htm&release=264.0.0&type=5)**  
    You can create sharing rules based on the record owner or other criteria, and sharing rules that grant record access to unauthenticated guest users. You can also create sharing rules based on group membership for the User object.
- **[Sharing Rule Categories](https://help.salesforce.com/s/articleView?id=platform.security_sharing_data_set_categories.htm&release=264.0.0&type=5)**  
    When you define a sharing rule, you can choose from the following categories in the owned by members of and Share with dropdown lists. Depending on the type of sharing rule and the features enabled for your organization, some categories may not appear.
- **[Edit Sharing Rules](https://help.salesforce.com/s/articleView?id=platform.security_sharing_rules_edit.htm&release=264.0.0&type=5)**  
    You can edit the label, rule name, and sharing access level for all sharing rules. Depending on the rule type, you can also edit additional settings. If you must edit other fields in the sharing rule, like who is granted access, delete the rule and create a new one.
- **[Sharing Rule Considerations](https://help.salesforce.com/s/articleView?id=platform.security_sharing_rule_considerations.htm&release=264.0.0&type=5)**  
    Review these considerations before using sharing rules.