Sub topic 18
Troubleshooting: why does this user have (or lack) access?
This chapter assumes you know profiles, permission sets, permission set groups, muting, and the difference between object permissions and record sharing. It gives a repeatable order for finding out why a user can or cannot do something.
Work from the question, not the user
Start by naming what is missing or extra. "Can't see the record" and "can't see the field" have different causes, so pin down one of these first:
- The object, tab, or app is missing.
- A field is hidden or read-only.
- A system permission or custom permission is missing.
- The object is visible, but a specific record is not.
A diagnostic order
- Confirm the user. Check that the user is active and has the profile and license you expect.
- List every source of access. Look at the profile, each directly assigned permission set, and each permission set group. Access is the union of all of them.
- Check muting. A muting permission set inside a group removes a permission only from that group's contribution. The same permission can still arrive through the profile or another permission set.
- Check group status. A group in Updating, Outdated, or Failed status may not reflect your latest changes yet.
- Check sharing. Object Read does not show every record. Org-wide defaults, role hierarchy, sharing rules, and teams decide that.
Use the tools Salesforce gives you
In Setup, open the user's record and review Permission Set Assignments. The View Summary option on a user's permission sets and groups shows which permissions the user has and where each one comes from. The Field Accessibility view in Setup shows field access across profiles for one field.
You can also query assignments. This SOQL lists a user's permission sets, with the hidden profile-owned set excluded:
SELECT PermissionSet.Name, PermissionSet.Label, PermissionSetGroupId
FROM PermissionSetAssignment
WHERE Assignee.Username = '[email protected]'
AND PermissionSet.IsOwnedByProfile = falseFor custom permissions, confirm behavior as the user would experience it. FeatureManagement.checkPermission('Approve_Discounts') returns true if any profile, permission set, or group grants it.
Common causes
| Symptom | Likely cause |
|---|---|
| User has a permission you removed | Another permission set or the profile still grants it |
| Muting did not work | The permission also comes from outside the group |
| Object visible but records missing | Sharing, not permissions |
| Change has no effect yet | Group is Updating, Outdated, or Failed |
| Permission set cannot be assigned | The user's license does not match the set |
Exercise
A user is in the Sales Representative group, which has a muting permission set that removes Delete on Account. The user can still delete accounts. Name two places to check.
Show answer
Check the user's profile and any directly assigned permission sets. Muting only affects permissions granted through that group. If either of those grants Delete on Account, the user keeps it. Also check for Modify All, which includes delete.