Hierarchy Lookup in Salesforce: A Complete Guide

When working with Salesforce data models, you will often come across scenarios where a record in an object needs to reference another record of the same object. This is where Hierarchy Lookup Relationship comes into play.

In this blog, we’ll explore:

  • What Hierarchy Lookup is
  • Why it’s useful
  • A real-world example
  • How to create it in Salesforce
  • Benefits and limitations
  • A diagram for easy understanding

A Hierarchy Lookup is a special type of Lookup Relationship available only for the User object in Salesforce.

It allows you to create a relationship between one User record and another User record. Essentially, this lets you build a reporting or management hierarchy within Salesforce.

Think of it like saying:

  • “This User reports to that User.”
  • “This employee’s manager is another User.”

  • Only available for the User object.
  • Allows a User to reference another User as their manager.
  • Helps define reporting structures (like manager → employee).
  • Enables visibility and access rules (like manager can see subordinates’ records).

Let’s imagine a company with the following reporting structure:

  • CEO (Alex) manages Sales Manager (John).
  • John manages two Sales Reps: Emma and David.

Using Hierarchy Lookup:

  • John’s Manager field will point to Alex.
  • Emma’s Manager field will point to John.
  • David’s Manager field will point to John.

This way, Salesforce knows exactly who reports to whom.


In Salesforce, this is achieved using the Manager field (Hierarchy Lookup) on the User object.


Actually, Salesforce already provides a built-in Hierarchy Lookup field on the User object called Manager.

But if you want to create a custom Hierarchy Lookup field:

  1. Go to SetupObject Manager.
  2. Select the User object.
  3. Click Fields & RelationshipsNew.
  4. Choose Lookup Relationship.
  5. Select User as the related object.
  6. Save the field.

Now you have a custom Hierarchy Lookup on User.


  •   Defines clear reporting structures.
  •   Enables manager-level visibility into subordinates’ records.
  •   Useful in approval processes, reporting, and role-based access.
  •   Simple way to create an organization chart.

  •  Only available on the User object.
  •  Cannot be created on other standard or custom objects.
  •  Doesn’t replace Role Hierarchy or Sharing Rules — it works in addition to them.

  • Manager Approvals → Approval requests go up the hierarchy.
  • Data Visibility → Managers can see records of subordinates.
  • Org Charts → Easily map reporting structures.

The Hierarchy Lookup Relationship in Salesforce is a powerful way to define reporting structures within the User object. It ensures that employees, managers, and executives are all connected in a clear chain of command.

By leveraging this, organizations can streamline approval processes, improve data visibility, and better manage user relationships.


👉 Next time you see the Manager field on a User record, remember — that’s Salesforce’s Hierarchy Lookup in action!


Leave a Reply

Your email address will not be published. Required fields are marked *