Loading
Salesforce Enforces New Security Requirements in Summer 2026Read More
Manage Users and Data Access
Defer Sharing Calculations

Defer Sharing Calculations

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.

Required Editions

Available in: both Salesforce Classic and Lightning Experience
Available in: Enterprise, Performance, Unlimited, and Developer Editions
Note
Note The defer sharing calculation feature isn't enabled by default. To enable it for your organization, contact Salesforce Customer Support.

By default, sharing rules and group membership are recalculated after certain updates to related features, such as sharing settings, roles, territories, groups, and users.

Type of Sharing Calculation Occurs When You
Sharing Rule
  • Change an organization's default sharing model
  • Create, edit, or delete sharing rules
  • Create or transfer any records
  • Update public group members
  • Create or activate a user
  • Change users’ roles or update the role hierarchy
  • Add or remove users from territories
  • Reparent territories
  • Make changes to roles, territories, or public groups involved in sharing rules
Group Membership
  • Change or reparent roles
  • Add or remove users from territories
  • Update public group members
  • Update portal account ownership if the new owner has a different role

When you defer sharing rule or group membership calculations, most sharing evaluations are disabled. Access configuration changes don’t take effect until you resume sharing rule or group membership recalculations and recalculate sharing rules. You can defer sharing calculations if you make a large number of changes that trigger sharing recalculation, and want to suspend the automatic sharing calculations to a later time to prevent timeouts or performance issues.

Keep in mind that sharing updates aren’t evaluated while sharing calculations are deferred. You must also remember to restart sharing calculations and complete a full recalculation to avoid record access inconsistencies. To ensure that your changes are successful and the impact to your users is minimal, review Considerations for Making Sharing Updates before deferring group membership or sharing rule calculations.

Note
Note Deferring sharing calculations doesn’t defer the recalculation of some sharing changes in order to preserve data integrity. These calculations that can't be suspended can take significant time to process based on the org's settings and data volume. Group membership locking can also still occur while sharing calculations are deferred.
  • Defer Sharing Rule Calculations
    If you’re making a large number of changes that affect sharing rules, including changes to sharing rules, roles, territories, or public groups, you can temporarily suspend automatic sharing rule calculations and resume them after you finish your updates. You must resume calculations and do a full sharing rule recalculation, or you can experience sharing inconsistencies in your records.
  • Defer Group Membership Calculations
    If you’re making changes to groups or related features that affect many records, you can temporarily suspend automatic group membership calculations and resume them after you finish your updates. You must resume calculations and do a full sharing rule recalculation, or you can experience sharing inconsistencies in your records.
 
Loading
Salesforce Help | Article