Sub topic 6
Roles: What They Are and How They Differ from Profiles
This chapter assumes you can navigate Setup, know the standard objects (Account, Contact, Opportunity, Case), and have a basic idea of what a profile and a permission set are. You do not need to know how the role hierarchy works yet. The next chapter covers that.
What a role is
A role is a label that places a user in the record-access structure of your org. Its job is to answer one question: whose records should this user be able to see because of where they sit? Roles do not say which objects a user can use or which fields they can edit.
Each user can have at most one role. Roles are optional, but without one a user gets no access from the hierarchy. You assign a role on the user record, and you build the roles themselves under Setup > Roles.
Profiles, permission sets and roles side by side
Profiles and permission sets answer "what can this user do?" Roles answer "whose records can this user reach?" Both must allow an action before it happens.
| Question | Controlled by |
|---|---|
| Can the user read, create, edit or delete Accounts at all? | Profile and permission sets (object permissions) |
| Can the user see the Annual Revenue field? | Profile and permission sets (field-level security) |
| Can the user open this particular Account? | Org-wide default, ownership, role, sharing |
| Which apps, tabs and system permissions are available? | Profile and permission sets |
A user needs one profile, and the profile is required. A user needs no role. Many users can share a profile while holding different roles, and the reverse is also true.
A worked example
Suppose two users share the Sales User profile.
- Priya has the role Sales Rep, West.
- Marcus has the role Sales Rep, East.
Both can create and edit Opportunities, because the profile grants that. Their roles do not change this. Roles only matter once the org-wide default for Opportunity is set to Private. Then each user sees their own Opportunities, and the role structure decides whether anyone else, such as a manager, also sees them.
If you move Priya to a different role, her object permissions stay exactly the same. Only her record access changes.
A role is not a reporting line
Roles often copy the org chart, but nothing forces them to. A role describes the level of record access a person needs. Two peers with different job titles can hold the same role. A senior individual contributor can sit in a low role even though they rank high on the org chart. When you design roles, ask "who needs to see whose data?" and not "who reports to whom?"
Common errors
- Using roles to grant permissions. Adding a role will never let someone create a record on an object their profile blocks.
- Copying the full org chart into roles. Deep hierarchies are hard to maintain and slow down sharing calculations.
- Forgetting that a role is optional. A user with no role can see only records they own, records opened by org-wide defaults, and records shared with them directly.
- Confusing roles with public groups. A public group is a set of users you can name in sharing rules. A role is a position in the hierarchy.
Exercise
A user has a profile with Read and Edit on Opportunity, and the Opportunity org-wide default is Private. The user has no role. Can they edit an Opportunity owned by a colleague, and why or why not?
Show answer
No. The profile gives object permission, but with a Private default the user can edit only records they own or that are shared with them. With no role, they receive no access from the hierarchy either, and nothing else was said to share the record.