Salesforce is implementing enhancements to the sharing recalculation process to improve performance for large-scale transactions in Salesforce. After group deletion, group membership changes, or role updates occur, related owner-based sharing rules and account owner share records are recalculated asynchronously when that approach results in better performance.
This change is most relevant for customers who change the group or role membership of one or more users with a very high ownership data skew — for example, a single user who owns hundreds of thousands of records of the same object. If your Salesforce org meets this criteria, the information in this knowledge article applies to you.
This article explains how Salesforce's asynchronous sharing recalculation works after group deletion, group membership changes, or role updates, what triggers it, how it can affect Apex code and flows, and how to monitor recalculation progress.
A share record (or sharing row on a share table) indicates the access that a user, group, or role has to a record. When group deletion, group membership changes, or role updates occur, recalculations are triggered to make sure that share records are accurate and record access is up-to-date. Group membership or role changes result in three steps:
Before this change, all three of these steps were executed synchronously and these operations blocked other processes until completion.
After group deletion, group membership changes, or role updates occur:
Whether asynchronous recalculation occurs is dynamic and depends on several factors, including record ownership of all impacted users, operational complexity, and database resource availability. Synchronous recalculation still occurs when it's determined to be more performant, which is usually the case. But when the system calculates that asynchronous recalculation is better for a large transaction, this optimized approach allows for smoother operations and faster response times.
When you assign a user to a role, sharing rows must be updated so that access is correctly granted to that user, superiors in the role hierarchy, and users who have access via sharing rules. For example, a user named Carole White has a very high ownership data skew because she owns more than 300,000 records of the same type. Carole doesn't currently have a role. The role hierarchy is: CEO, under which sits SVP of Technology (with VP of Information Technology under it) and SVP of Business Operations. There's also an existing sharing rule that shares records owned by users in the VP of Information Technology role with users in the SVP of Business Operations role.
Carole is assigned the VP of Information Technology role. With this new role:
Because of the scale of these changes and current system availability, the system determines it's better to recalculate owner-based sharing rules asynchronously. The role assignment update is processed first, and the user can make other role changes immediately, while the sharing recalculation proceeds in the background.
Role reparenting is when you move a user or role that reports to one role so that it instead reports to a different role. Using the same hierarchy: Carole White's VP of Information Technology role currently reports to SVP of Technology. You move it so it instead reports to SVP of Business Operations.
Sharing rows must be updated so access is granted correctly through the new role hierarchy and sharing rules. Users in the SVP of Technology role lose access to Carole's records, while users in the SVP of Business Operations role gain access via the hierarchy instead of the prior sharing rule. Because of Carole's high ownership data skew combined with the complexity of this change, the system determines it's better to recalculate owner-based sharing rules asynchronously. The role change is processed immediately, and the sharing recalculation proceeds in the background.
Group membership assignment (or unassignment) is when you add or remove a user or group to or from another group. Continuing the example: Carole White's role now reports to SVP of Business Operations, but SVP of Technology still needs access to the accounts she owns. You create a group called Technology Users and an owner-based sharing rule where the source is the Technology Users public group and the target is the SVP of Technology role.
After adding Carole White to the Technology Users public group, owner-based sharing rules are recalculated so access stays up-to-date across all the records she owns. Because of Carole's high ownership data skew, the system determines it's best to calculate the sharing rules asynchronously. The group membership change is processed immediately, and the sharing recalculation proceeds in the background.
Most group membership or role changes don't lead to asynchronous sharing recalculation. However, review this section if your Salesforce org meets all of the following criteria, to avoid later issues with Apex code (including classes, tests, and triggers) and flows:
If your org doesn't meet this criteria, asynchronous sharing recalculation is less likely to occur and impact your Apex code and flows, and the steps below may not be necessary.
With asynchronous recalculation, share records aren't updated immediately. If Apex classes, Apex tests, Apex triggers, or flows rely on the immediate availability of updated share records after updates to groups or roles, the code or flows can break. For example:
To prepare for this change:
The release update was made available starting in Spring '26 and will be enforced in Spring '27.
This change was introduced in Summer '25 and rolled out over several releases. Salesforce completed the enablement of this updated behavior in all orgs in April 2026.
The one exception is for changes that originate from Apex code and flows, whose sharing recalculation continues to run synchronously until the Update Apex Code and Flows for Changed Sharing Recalculation Behavior release update is enforced in Spring '27.
When asynchronous recalculation of owner-based sharing rules occurs after group membership or role updates, you see three rows in the Setup Audit Trail. The first row indicates that the group membership or role updates were processed synchronously. The next two rows indicate when the asynchronous recalculation of owner-based sharing rules is initiated and completed.
If the asynchronous recalculation fails after several attempts, an entry is logged in the Setup Audit Trail.
When asynchronous recalculation of owner-based sharing rules occurs after group membership or role updates, the update is also logged on the Background Jobs page. The Job Sub Type is listed as "{Object} - Async Owner Sharing Rule Recalculation."
The Salesforce admin who initiated the group membership or role update receives an email when asynchronous recalculation has started. The admin then receives an email after the recalculation completes successfully, or an email if the recalculation fails after several attempts, with details for contacting Salesforce Customer Support.
If it's more performant to recalculate owner-based sharing rules synchronously, as before, you see only one row in the Setup Audit Trail indicating that both the group membership or role updates and sharing rule recalculation are completed.
005103630

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.