function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AmazonAmazon 

Salesforce Data Access using Role Hierarchy?

Pls help in answering this q... thanks in advance.
Q) How does Salesforce enforce data access using role hierarchy?
a. Users are given access to the records owned by the users who are below them in the role hierarchy
b. Users are given access to the records owned by the users who share the same role in the role hierarchy
c. Users are given access to the records accessible by the users who are below them in the role hierarchy
d. Users are given access to the records accessible by the users who are above the role hierarchy
Best Answer chosen by Amazon
Jayson Faderanga 14Jayson Faderanga 14
the answer is A

please consider the following reason:
B is not possible, siblings don't share records as they are the same level on the hierarchy.
C is not possible,  users sometimes have visibility on records they don't own through permission sets, if the user above the role hierarchy doesn't have the right permission, he won't be able to view the record.
D is not possible, of course, users below the hierarchy won't be able to view records accessible by the users above them.