Sub topic 1
How Salesforce decides what a user can do and see
Prerequisites
This chapter assumes you know the following:
- How to navigate Setup.
- What standard and custom objects and fields are.
- What a user record is.
- The basic idea of record sharing: org-wide defaults and roles.
Two questions, two mechanisms
Salesforce answers two separate questions every time a user touches data.
- Can this user work with this kind of data at all? This covers objects, fields, system features, apps, and tabs. Permissions answer it.
- Can this user see this particular record? Record sharing answers it. Org-wide defaults, the role hierarchy, sharing rules, and manual shares all belong here.
A user needs both. Permission to read Accounts does not reveal any account the sharing model hides. Sharing access to a record does not help if the user has no Read permission on the object. Later chapters cover the exceptions, View All and Modify All.
Where permissions come from
Permissions come from three containers:
- Profile: every user has exactly one. It is the baseline.
- Permission set: a collection of permissions assigned in addition to the profile. A user can have many.
- Permission set group: a bundle of permission sets, usually one per job function. A group can include a muting permission set that switches off chosen permissions inside that group.
Each container can grant these kinds of access:
| Kind of access | Example |
|---|---|
| Object permissions | Read, Create, Edit, Delete on Account |
| Field-level security | Read or Edit on Account.AnnualRevenue |
| System and user permissions | Export Reports, Manage Users |
| App and tab visibility | Which apps and tabs appear |
Some settings exist only on the profile, such as login hours and IP ranges, the default app, and default record types.
How the pieces combine
Access is additive. The user's effective permissions are the union of the profile, every directly assigned permission set, and every assigned group. If any one of them grants a permission, the user has it. Adding a permission set can only widen access.
Muting is the one subtraction. It removes a permission only from the group that contains the muting set. If the same permission arrives from the profile or from another assigned permission set, the user keeps it.
Why this model matters
Older orgs often have dozens of near-duplicate profiles, one per variation of a job. Because profiles allow only one per user and cannot be combined, each new variation means another copy to maintain. Permission sets are additive and reusable, so you can build small units of access and assign them as needed. The rest of this tutorial builds on that idea. It starts with profiles, then permission sets, then groups, and ends with a design strategy and troubleshooting.
Exercise
A user's profile grants no Delete permission on Opportunity. They are assigned two permission sets, and one of them grants Delete on Opportunity. Can they delete opportunities they can see? What would change if that permission set were inside a group with a muting set that removes Delete?
Show answer
Yes. Access is additive, so the permission set's Delete grant applies, provided sharing gives them access to the record. With the muting set in a group, Delete is removed from that group's contribution. The user would lose it unless the profile or another assigned permission set also grants it.