Sub topic 12
Group status and recalculation: Updated, Updating, Outdated, Failed
This chapter assumes you can build a permission set group, assign permission sets to it, and add a muting permission set. You should also know that a user's effective access is the combination of their profile and everything assigned to them. Here you will learn what a group's status means, when Salesforce recalculates a group, and what to do when a group does not reach the Updated state.
Why a group has a status
A permission set group does not store its own permissions. It points to member permission sets and, optionally, one muting permission set. Salesforce combines them into a single set of effective permissions for the group. That combined result is calculated and stored, so it has to be rebuilt whenever something it depends on changes.
The rebuild is called recalculation. It can take from a few seconds to several minutes, depending on how many permissions are involved and how busy the org is. The group's status tells you where it is in that cycle.
The four statuses
| Status | Meaning | Is the group usable? |
|---|---|---|
| Updated | The combined permissions match the current members and muting set. | Yes. Assigned users get the current access. |
| Updating | Salesforce is recalculating the group now. | Not reliably. Users may see the old result until it finishes. |
| Outdated | The group has changed, and recalculation has not started or finished. | Not reliably. The combined permissions are stale. |
| Failed | The recalculation did not complete. | No. Fix the cause and recalculate. |
Treat "Updated" as the only state in which you can trust the group's effective access. The other states mean the stored result and the configuration may disagree.
What triggers a recalculation
Salesforce starts recalculating a group when any of these happen:
- You add or remove a permission set in the group.
- You add, remove, or edit the muting permission set.
- You change a permission in a member permission set, such as turning on an object permission or a field permission.
- You change the permission set licenses or other dependencies of a member permission set.
- You deploy metadata that changes any of the above.
The third trigger surprises people. Editing a permission set that is used by ten groups makes all ten groups recalculate. A small edit in a widely shared permission set can therefore keep many groups busy at once.
What users experience during recalculation
While a group is Updating or Outdated, users assigned to it may not yet have the access you just configured. The reverse also applies. If you removed a permission, users may keep it briefly. Plan changes with this in mind:
- Avoid making permission changes at the start of a business day if users need the new access immediately.
- Do not test a change the second after you save it. Check the group status first.
- When a change removes access for security reasons, confirm the group reached Updated before you consider the change in effect.
The group stays assigned to its users throughout. Recalculation changes the group's effective permissions, not who is assigned.
Checking the status
In Setup, open Permission Set Groups. The list view shows the status of each group, and the group's detail page shows it too. A banner or message on the detail page tells you when a recalculation is in progress.
You can also query the status. The PermissionSetGroup object has a Status field with the values Updated, Updating, Outdated, and Failed.
SELECT DeveloperName, MasterLabel, Status
FROM PermissionSetGroup
WHERE Status != 'Updated'
ORDER BY DeveloperNameThis query returns only the groups that are not ready. If it returns no rows, every group is current. It is a quick check to run before and after a deployment.
Handling Failed groups
A Failed status means the recalculation could not complete. Common causes are:
- A member permission set depends on a permission set license that is missing or was removed.
- A member permission set was deleted or deactivated in a way that breaks the group.
- A transient system problem interrupted the job.
To recover:
- Open the group's detail page and read any error message shown.
- Open each member permission set and check its required licenses and any referenced components.
- Correct the cause, such as restoring the missing license or removing a broken member.
- Save the group again or use the recalculate action on the detail page if it is offered. Wait for the status to move through Updating to Updated.
- If the group stays Failed with no clear cause, contact Salesforce Support with the group name and the time of the failure.
Do not delete and recreate a Failed group as a first step. Doing so removes its assignments, and you would have to restore them.
Working with recalculation in deployments
Metadata deployments that change many permission sets can start many recalculations at once. A few habits keep this manageable:
- Deploy during a quiet period when you can.
- Group related changes into one deployment instead of many small ones, so each group recalculates fewer times.
- After the deployment, run the status query above and confirm that no groups are Outdated, Updating, or Failed.
- In a scripted pipeline, add a step that polls the status query until it returns zero rows before running tests that depend on access.
Common mistakes
- Assuming a saved change is live. Saving a permission set does not mean the group is current. Check the status.
- Editing a shared permission set casually. One edit can trigger recalculation across many groups. Check where the permission set is used first.
- Debugging access while a group is Updating. The result changes when the job finishes. Wait, then investigate.
- Ignoring Failed groups. A Failed group can sit unnoticed for weeks if nobody queries for it. Consider a scheduled report or check for any group whose status is not Updated.
- Recreating a group to fix a failure. This drops assignments. Fix the cause instead.
Exercise
You remove the Delete permission on Opportunity from a member permission set that three groups share. A manager says a user still deletes opportunities five minutes later. The user's profile does not grant Delete. What should you check first, and what query helps?
Show answer
Check whether the three groups have reached the Updated status, because the user may still be getting the old combined permissions while a group is Outdated or Updating. Run SELECT DeveloperName, Status FROM PermissionSetGroup WHERE Status != 'Updated'. If a group is listed, wait for it to finish, or investigate if it is Failed. If all are Updated, check whether the user holds the Delete permission through another permission set or group.
Exercise
A group shows Failed after a deployment. Why should you not delete and recreate it as the first fix, and what do you do instead?
Show answer
Deleting the group removes its assignments, so users lose access and you must reassign them. Instead, read the error on the group's detail page, check each member permission set for a missing permission set license or a broken reference, fix that cause, and recalculate until the status is Updated.