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
ram_iyerram_iyer 

How do I check what level of access does a user have on a record?

How do I check what level of access does a user have on a record?

 

For a record, from the <Object>__share table, I can get the Ids of the users or groups that the record is shared with. However, if a record is shared with a user, because he/she is the manager of the user, I cannot get that from the <Object>__share table.

 

For a record, if I click on the Sharing button, I am redirected to a page that shows me all the sharing details.  When I click "Expand List", I am able to find the list of all the users that can access this record, with a "Why?" for each user. How can i access this information via apex?