---
schema_version: "1"
id: f8996ab6abcbd9df5410410fe0c6052ee3b7e77f16a442092893c962e580a39a
title: Defer Group Membership Calculations
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/security_sharing_group_membership_calculations.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.security_sharing_group_membership_calculations.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2fe3177da3bc4784c978646e62b8aa33e6a26e78afbee99d41e0a57222607340
description: 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.
products:
  - Security
  - Salesforce Platform
release: "264"
---
# 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.

### 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;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d38786e72">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d38786e72 ">To defer (suspend and resume) sharing calculations:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d38786e72 ">
              <p>Manage Users</p>
              <p>AND</p>
              <p style="margin-bottom:0;">Manage Sharing Calculation Deferral</p>
            </td>

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

When you make changes to roles, territories, groups, or users, or change ownership of portal accounts, group membership is automatically recalculated to add or remove access as necessary. Changes can include adding or removing a user from a group or changing a role to allow access to different sets of reports.

If you’re making large-scale changes that can cause performance issues or group membership calculation timeouts, you can temporarily defer group membership calculations before you make your changes. After you make your changes, you must resume group membership calculations and do a full sharing recalculation. Review [Considerations for Making Sharing Updates](https://help.salesforce.com/s/articleView?id=platform.security_sharing_update_considerations.htm&release=264.0.0&type=5 "Review these considerations before making sharing changes, such as updates to organization-wide defaults, sharing rules, account ownerships, or group memberships.") before deferring group membership calculations.

![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 If you defer group membership calculations, membership changes involving individual users are still reflected immediately. However, membership changes related to nested groups or due to role hierarchy changes aren’t reflected until after group membership calculations are resumed and you complete a full recalculation. Any change in record access resulting from membership changes also isn’t processed until calculation is resumed and you complete a full recalculation.

[Group membership locking](https://developer.salesforce.com/docs/atlas.en-us.draes.meta/draes/draes_group_membership_locking.htm) can also still occur while sharing calculations are deferred.

We recommend that you resume sharing calculations immediately after making your changes, and then start the full sharing rule recalculation as soon as possible during a period of low activity. By resuming sharing immediately, new updates are processed immediately, meaning there are fewer changes that must be recalculated. Completing the full sharing recalculation in a timely manner then ensures that record access behaves as expected without significant lag time.

![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 The defer sharing calculation feature isn't enabled by default. To enable it for your organization, contact Salesforce Customer Support.

1. From Setup, in the Quick Find box, enter Defer Sharing Calculations, and then select **Defer Sharing Calculations**.
2. In the Group Membership Calculations related list, click **Suspend**.
    
    ![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 Suspending group membership calculations also suspends sharing rule calculations.
3. Make your changes to roles, territories, groups, users, or portal account ownership.
4. To enable group membership calculations again, click **Resume**. Group membership and sharing rule recalculation begin automatically.
5. To recalculate sharing rules, select **Yes** when asked if you want to automatically recalculate sharing rules. Or, in the Sharing Rule Calculations related list, click **Recalculate**.
    
    ![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-access-264-0-0-production-enus/a92be132-3cbc-412a-9262-130636120c14/images/icon_important.png)
    
    Important After you resume group membership calculations, you must do a full sharing rule recalculation. Otherwise, changes that you made while calculations were suspended aren’t reflected in record access.

#### See Also

- [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.")
- [_Designing Record Access for Enterprise Scale_: Group Membership Locking](https://developer.salesforce.com/docs/atlas.en-us.draes.meta/draes/draes_group_membership_locking.htm)