Creating the Role Hierarchy in salesforce : Before creating the role Hierarchy in salesforce we have to configure organization wide defaults settings. After organization wide defaults settings have been established we have to create Role Hierarchy settings in salesforce. Role Hierarchy settings make the managers and subordinates to edit, and view the records. The users in the Hierarchy can be able to view, edit and report all the data shared.

 creating the  Role Hierarchy in Salesforce ?

 Go to Setup.

Creating the Role Hierarchy in salesforce

Now go to Administer=>Manage Users=> Roles.

role hierarchy

 Now we are taken to new window select Sample Role Hierarchy from pickup List which is shown below.

Creating the Role Hierarchy in salesforce

Click Set Up Roles to create new Role in Salesforce.

Creating the Role Hierarchy in salesforce

 Enter Label Name, Role Name and select this role report to field from pick list. The name which we selected in role reports to will act as manager for the user which we are creating now in salesforce.

Select Save Button.

Creating the Role Hierarchy in salesforce

Now Go to Detailed view select Assign Users to Role. We have to assign users to the role we  have created. The users which we assign will only access the data assigned to this role.

role hierarchy

Select All Users from Pick list. Then all users that are available in our account will be displayed. Select users from Available users block and add to Selected Users.

Creating the Role Hierarchy in salesforce

 Save Settings.

To check whether this role is assigned to user manager go to Manage Users=>Users. Select User manager and Edit it.

 Creating the Role Hierarchy in salesforce

From above we observe that Role field is assigned as Manager.

The Role we created can be viewed in three modes.

  1.  Show in Tree View.
  2. Show in Sorted List View.
  3. Show in List View.