Role Hierarchy - Chirag-ahir/SFC-Preparation GitHub Wiki
A role hierarchy works together with sharing settings to determine the levels of access users have to your Salesforce data. Users can access the data of all the users directly below them in the hierarchy.
Role hierarchy automatically grants record access to users above the record owner in the hierarchy. By default, the Grant Access Using Hierarchies option is enabled for all objects. It can only be changed for custom objects.
To control sharing access using hierarchies for any custom object, enter Sharing Settings in the Quick Find box and select Sharing Settings. In the Organization Wide Defaults section, click Edit. Deselect Grant Access Using Hierarchies if you want to prevent users from gaining automatic access to data owned by or shared with their subordinates in the hierarchies.
You can disable Role hierarchy checkbox only for custom object, for standard object Role hierarchy enable by default. You can not disable Role hierarchy for standard objects.
To access role hierarchy go to -> Setup -> Search for Roles To create a new role in role hierarchy tap on Add Role in Role Hierarchy
Revoke access of object shared with role hierarchy: https://youtu.be/Za3HvlSuTCs?si=n3pK9kgKBUjD6FwT&t=1353