OWD for Account is Private. If I share an account with another user will the record be visible to user's manager and above?
- Manual Sharing
- Apex Sharing
- Sharing Rule ( using share with Roles & subordinates)
- Account teams
Grant using hierarchies for Account can't be unchecked in OWD due to standard object restriction.
4 件の回答
yes users in roles above the role of the user the record is shared with will get access too, even with manual and apex sharing.
Behind the scenes this uses system-defined groups created for each role which contain all users with the role as well as all users with a parent role in the hierarchy. You can't query these directly, but there's more info on how they work in the Group Maintainence section from Record Access Under the Hood:
https://developer.salesforce.com/docs/atlas.en-us.salesforce_record_access_under_the_hood.meta/salesforce_record_access_under_the_hood/uth_groups.htm