Sub topic 3
Muting Permission Sets and Permission-Set-Led Access
Assume you know basic Salesforce Setup, objects and fields, users, and record sharing. This chapter focuses on permissions that control actions and features, not which records sharing rules expose.
Remove a Permission Inside a Group
A permission set group bundles several permission sets. A muting permission set removes selected permissions from that group’s effective access.
For example, a Sales Representative group might include Opportunity_Editor, but a regional role must not delete opportunities. Add a muting permission set that mutes the Delete permission for Opportunity.
Muting applies only to permissions supplied by that group. It does not remove access granted by a user’s profile, another permission set, or direct sharing.
Group Status and Recalculation
Salesforce recalculates a group after its permission sets or muting permissions change.
| Status | Meaning |
|---|---|
| Updated | Effective permissions match the current group definition |
| Updating | Salesforce is recalculating the group |
| Outdated | A change requires recalculation |
| Failed | Recalculation did not complete |
Wait for Updated before testing access or assigning the group for a time-sensitive process.
Minimum Access and Custom Permissions
A permission-set-led model gives users a small baseline profile, commonly Minimum Access, and adds access by job function. Separate permission sets such as Opportunity_Editor and Forecast_Viewer are easier to review than large profile variations.
A custom permission is a named feature flag that can be assigned through a profile, permission set, or group. Apex can check it before showing or running sensitive logic:
if (FeatureManagement.checkPermission('Approve_Discounts')) {
// Run approval logic
}Flows can use the same custom permission in a permission decision or visibility condition.
Assign, Deploy, and Audit Access
In Setup, assign a permission set or group from the user’s Permission Set Assignments page. Apex can assign a permission set:
insert new PermissionSetAssignment(
AssigneeId = userId,
PermissionSetId = permissionSetId
);Audit assignments with SOQL:
SELECT Assignee.Name, PermissionSet.Name
FROM PermissionSetAssignment
WHERE PermissionSet.IsOwnedByProfile = false
ORDER BY Assignee.NamePermission sets and groups are metadata, so store their XML definitions in source control and deploy them between environments. Review labels, API names, and dependencies before deployment.
Design and Troubleshoot
Keep one permission set focused on one job capability. Use groups for complete job functions and muting for carefully documented exceptions. Avoid using muting to conceal a confusing design.
When access is wrong, check the user’s profile, direct permission sets, groups, muting status, license requirements, object and field permissions, and record sharing. Confirm that the group status is Updated. Remember that permissions allow object actions, while sharing determines record visibility.
> callout note > A muting permission set cannot undo access granted by a different source.
Exercise
A user still has Delete access after Opportunity Delete is muted in a group. What should you check first?
Show answer
Check whether the profile or another directly assigned permission set grants Delete. Muting affects only permissions contributed by that group.