Sub topic 3
Who can see Setup: permissions that control access
This chapter assumes you can log in to an org, know what a profile and a permission set are, and have used the gear icon to open Setup. It covers why some users have no Setup menu and how to give or remove that access.
Setup access is permission-based
Salesforce does not hide Setup by role or job title. It checks system permissions on the user's profile and on any permission sets assigned to them. A permission is allowed if any of those sources grants it, so a permission set can add access that the profile lacks.
The permissions you will meet most often:
| Permission | What it allows |
|---|---|
| View Setup and Configuration | Open Setup and view its pages, including the Setup Audit Trail |
| Customize Application | Change configuration such as objects, fields, and page layouts |
| Manage Users | Create and edit users, and manage profiles and permission sets |
| Author Apex | Create and edit Apex classes and triggers |
| Modify All Data | Create, edit, and delete every record, regardless of sharing |
View Setup and Configuration is the one that decides whether the Setup gear icon shows up. Without it, a user may not see Setup at all. Other permissions then decide what that user can change once inside.
Viewing is not the same as changing
A user who can only view Setup can open pages and read settings. Changing them needs a permission for that area. A user with Manage Users can work in the user-related pages but still cannot create custom fields without Customize Application.
How access is evaluated
Checking and granting access
- In Setup, enter Profiles or Permission Sets in Quick Find and open the one you want to check.
- Open its System Permissions section and look for View Setup and Configuration.
- To add access without editing a profile, create a permission set that includes the permission and assign it to the user.
To find who already has Setup access, run this query in the Developer Console or with the CLI. Each profile has an underlying permission set, so the query covers profiles and permission sets together:
SELECT Assignee.Name, Assignee.Username, PermissionSet.Label, PermissionSet.Profile.Name
FROM PermissionSetAssignment
WHERE PermissionSet.PermissionsViewSetup = trueCommon errors
- A user cannot see the gear icon. Check View Setup and Configuration on their profile and assigned permission sets. Also confirm you are looking at the right user's assignments.
- A user opens a page but cannot save. They have view access only. Find the permission for that area.
- You changed a permission and nothing happened. Confirm that the user is assigned the permission set, and ask them to refresh the page or log in again.
- A page is missing from Quick Find. Quick Find lists only the pages the user may see. The page may also depend on a feature that is not enabled in the org.
Exercise
A new admin assistant can log in but has no gear icon and cannot open Setup. You want them to view Setup pages and the Setup Audit Trail, but not change anything. What do you do?
Show answer
Create a permission set that grants only View Setup and Configuration, and assign it to the user. Do not add Customize Application or Modify All Data, because those allow changes. The user should then see the gear icon after refreshing or logging in again.