Sub topic 4
Opening Access Upward with the Role Hierarchy
This chapter assumes you know how org-wide defaults (OWD) set the baseline access for an object and that every record has an owner. It covers how the role hierarchy adds access for managers.
What the role hierarchy does
The role hierarchy is a tree of roles. A user who holds a role inherits access to records owned by users in roles below them. Access flows upward only. A manager sees what their reports own, but a report does not see the manager's records because of the hierarchy.
The hierarchy never reduces access. It adds to what the OWD already allows. If the OWD for an object is Public Read Only, everyone can already read the records, and the hierarchy matters only for edit access to records owned by subordinates.
In this tree, the Sales Manager can access records owned by both reps. The VP Sales can access records owned by the reps and the manager. The two reps cannot see each other's records through the hierarchy, because they sit in separate branches.
Grant Access Using Hierarchies
Each object has a setting called Grant Access Using Hierarchies. It is on by default for standard objects, and you cannot turn it off for them. For custom objects you can clear it, in the OWD settings for the object. When it is cleared, only the record owner and users granted access by other means can see the record, even if the owner has a manager.
Clear it when managers should not automatically see subordinates' data, for example for sensitive HR or compensation records.
Who gets access, and how much
The access a manager gets from the hierarchy is based on the access the subordinate has as owner. In practice:
- For records owned by a subordinate, the manager gets at least Read access, and gets Read/Write access when the OWD is Public Read/Write or Private.
- The hierarchy also covers records that subordinates can see through sharing, for some objects such as accounts, contacts, opportunities, and cases. For these, managers see related records that the subordinate can access.
- Object permissions still apply. A manager whose profile lacks Read on the object sees nothing. The hierarchy opens record access, not object access.
Roles are not profiles
A role controls which records a user can reach. A profile or permission set controls which objects and fields a user can work with. Changing a user's role changes their record visibility, and it can trigger sharing recalculation. Do not use roles to control feature access.
Common errors
- Expecting sideways access. Peers in different branches do not see each other's records. Use a sharing rule or a public group for that.
- Building the hierarchy to mirror the org chart. Build it around data access needs. Deep or wide trees add sharing calculation work and make troubleshooting harder.
- Forgetting the custom object setting. If a manager cannot see a subordinate's custom object record, check whether Grant Access Using Hierarchies is cleared for that object.
- Assuming it replaces the OWD. The hierarchy only adds access above the baseline.
Check your understanding
Exercise
A custom object has the OWD set to Private, and Grant Access Using Hierarchies is cleared. A Sales Rep owns a record. Can the rep's Sales Manager see it, and why or why not?
Show answer
Not through the hierarchy. Because Grant Access Using Hierarchies is cleared, the manager's higher position gives no access. The manager can see the record only if another mechanism grants it, such as a sharing rule, manual share, or team membership, or if the manager has View All or Modify All on the object.