Role Hierarchy in Salesforce: How Access Rolls Up, and How to Add Roles and Users

A role hierarchy is the tree of roles that decides which records a user can reach because of where they sit, not only what they own. Access rolls up: a manager can see and work with what the people below them own, but nobody inherits anything from the roles above them.

Think of it as a building’s key system. The floor manager’s key opens every office on that floor, while each office key opens one door.

If your opportunities, cases or custom records are Private, this tree is what lets a regional manager report on the team’s pipeline without someone writing a sharing rule for every rep.

Below I explain how the role hierarchy in Salesforce works, then add two warehouse roles to a real org, assign three users, check the result with SOQL, and finish with an example hierarchy and the practices I follow when I design one.

This Tutorial Covers: