Sub topic 12
Group status and recalculation: Updated, Updating, Outdated, Failed
This chapter assumes you can build a permission set group and know that a user's access is the combination of the profile and every assigned permission set. Here you learn why a group has a status and what to do when it isn't "Updated".
Why groups have a status
A permission set group doesn't store the final permissions itself. Salesforce calculates them from the member permission sets, minus any muting permission set, and caches the result. Users assigned to the group receive that calculated result.
When you change a group's membership, edit a member permission set, or change a muting permission set, Salesforce must recalculate. The status tells you whether the calculated permissions match the current configuration.
The four statuses
| Status | Meaning | What to do |
|---|---|---|
| Updated | The calculated permissions match the current configuration. | Nothing. |
| Updating | A recalculation is running. | Wait. Don't rely on the group yet. |
| Outdated | A change is pending and the group needs recalculation. | Wait, or save the group to start it. |
| Failed | The recalculation did not finish. | Find the cause, fix it, then recalculate. |
What triggers a recalculation
- Adding or removing a permission set in the group.
- Adding, removing, or editing a muting permission set.
- Changing permissions inside any member permission set.
- Changing the permission set licenses involved.
Editing one widely used permission set can put many groups into Updating at once. Large orgs may see this take noticeable time.
Checking status
You can see the status on the group's detail page in Setup. You can also query it. PermissionSetGroup exposes a Status field.
SELECT DeveloperName, MasterLabel, Status
FROM PermissionSetGroup
WHERE Status != 'Updated'An empty result means every group is current.
Common errors
- Testing too early. A user complains about missing access right after a deployment. The group is still Updating. Check status before debugging anything else.
- Failed from a license mismatch. A member permission set requires a permission set license that the group can't satisfy. Review the licenses on the member permission sets.
- Assuming a Failed group is harmless. Users may keep stale or incomplete permissions until the group recalculates successfully. Treat Failed as a defect.
- Deploying many changes at once. Bulk metadata deployments can leave several groups Outdated or Updating for a while. Plan changes outside peak hours when you can.
Recovering from Failed
- Open the group and read the error shown for the failure.
- Fix the cause, such as a missing license or a conflicting member.
- Save the group or select the recalculation option to run it again.
- Confirm the status is Updated.
Exercise
A user was just added to a group, and the admin deployed a change to a member permission set an hour earlier. The user still can't see a field the group should allow. What do you check first, and which statuses would explain the problem?
Show answer
Check the group's Status in Setup or with a SOQL query on PermissionSetGroup. Outdated or Updating means the change isn't calculated yet, so wait for Updated. Failed means the recalculation errored and must be fixed and rerun. Only if the status is Updated should you look at muting permission sets or field-level security.