---
schema_version: "1"
id: f41238f5a46781111abb5d7c80a720bbe96a4b48422c54588258311f82eaf258
title: Object-Specific Share Locks
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/security_sharing_object_locks.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.security_sharing_object_locks.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b18c822e605bc8f35c4d42bd0ac9853a2847d123f3bf4d04a4e9f927d1d43f8e
description: When you create, edit, or delete a sharing rule, recalculation runs to update record access in your Salesforce org. This operation can take some time if you have many users and records. The object-specific share locks feature enables you to make changes to a sharing rule for other objects simultaneously, depending on the objects affected by the sharing rules, sharing rule type, and target groups or roles of the affected users.
products:
  - Security
  - Salesforce Platform
release: "264"
---
# Object-Specific Share Locks

When you create, edit, or delete a sharing rule, recalculation runs to update record access in your Salesforce org. This operation can take some time if you have many users and records. The object-specific share locks feature enables you to make changes to a sharing rule for other objects simultaneously, depending on the objects affected by the sharing rules, sharing rule type, and target groups or roles of the affected users.

### 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>

Without object-specific share locks, you can’t submit simultaneous sharing changes until recalculation across all objects is complete. Review the following behavior considerations for object-specific share locks.

Criteria-based and owner-based sharing rules

Recalculation is run if a sharing rule has changed or when you click the **Recalculate** button on the Sharing Settings page. Clicking this button locks sharing rules for that object (1), but you can still make changes to sharing rules for another object.

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

Note Use the Recalculate buttons on the Sharing Rules related lists only if sharing rule updates have failed or aren’t working as expected.

![Clicking the Recalculate button locks sharing rules for that object.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-access-264-0-0-production-enus/a92be132-3cbc-412a-9262-130636120c14/access/images/sharing_object_locks_recalculate.png)

When recalculation for an owner-based sharing rule is in progress, you can’t create, edit, or delete owner-based sharing rules for that object targeting the same group of users. For example, let’s say you’re creating an owner-based lead sharing rule targeting the All Internal Users group. While recalculation is in progress, you can create another owner-based sharing rule for leads targeting any other public group except the All Internal Users group. You can create, update, or delete owner-based sharing rules for leads targeting all internal users only after the recalculation finishes. You receive an email notification when the recalculation is complete.

When recalculation for a criteria-based sharing rule is in progress, you can’t edit or delete that rule. But you can create, edit, or delete any other criteria-based or owner-based sharing rule for that object regardless of the target group of users.

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

Note You can’t modify the org-wide defaults when a sharing rule recalculation for any object is in progress. Similarly, you can’t modify sharing rules when recalculation for an org-wide default update is in progress.

Account, cases, contacts, and opportunities

Sharing rules can affect accounts and the associated account children—cases, contacts, and opportunities—so they’re locked together to ensure that recalculation runs properly. For example, creating or editing an account sharing rule prevents you from creating or editing a case, contact, or opportunity sharing rule. Similarly, creating or editing an opportunity sharing rule prevents you from creating or editing a case, contact, or account sharing rule before recalculation is complete. Locks aren’t shared across objects, except across accounts and associated account children.

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

Note Clicking the Recalculate button for any of these four objects’ sharing rules prevents anyone from making changes to sharing rules for those objects until recalculation finishes.

In the following example, an owner-based account sharing rule has been deleted and recalculation is in progress. Although you can’t create, edit, or delete another ownership-based sharing rule for any of these objects, you can make changes to a criteria-based sharing rule (2) for those objects.

![Accounts and associated children are locked together.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-access-264-0-0-production-enus/a92be132-3cbc-412a-9262-130636120c14/access/images/sharing_object_locks_associated.png)

#### See Also

- [Sharing Rules](https://help.salesforce.com/s/articleView?id=platform.security_about_sharing_rules.htm&release=264.0.0&type=5 "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.")
- [Recalculate Sharing Rules Manually](https://help.salesforce.com/s/articleView?id=platform.security_sharing_recalculating.htm&release=264.0.0&type=5 "When you make changes to sharing settings, groups, roles, and territories, sharing rules are reevaluated to add or remove access as necessary. You can manually recalculate sharing rules if sharing rule updates have failed or aren’t working as expected.")
- [Defer Sharing Calculations](https://help.salesforce.com/s/articleView?id=platform.security_sharing_defer_sharing_calculations.htm&release=264.0.0&type=5 "Performing a large number of configuration changes can lead to very long sharing rule evaluations or timeouts. To avoid these issues, a Salesforce admin can suspend sharing calculations, specifically for sharing rules and group membership, then resume calculations during an organization's maintenance period.")