This is the pictorial representation of how Salesforce determines record access for a user
- When a user needs to access a record, Salesforce will first check whether the user’s profile has required permission to access the object. If user’s profile does not have the required permission, user will not be able to access the record. If the profile has required permissions, system will proceed to step 2
- System checks “View All Data” system permission. If granted, user will be able to access the record
- Else, system will determine if the user is the owner of record. If yes, the user will be able to access the record
- Else, system will check Organization Wide Default (OWD) setting for that object. If OWD is set to Public Read Only or Public Read/Write, user will be able to access the record
- Else, system will check if the user is above in the role hierarchy from the owner who owns that record. If yes, user will be able to access the record
- Else, sharing rules are checked. If the user has been granted access to the record through Apex sharing, sharing rules or manual sharing, user will be able to access the record
- If none of the above requirements are met, user will not be able to access the record
References & Useful URLs
- Blog Post – Ways to Share Records in Salesforce
Ashish, nice quick reference.
Just wondering if Account Team, Case Team, Opportunity Team consider included in the last one?
And Account Owner ability to access any Contact and Opportunity.
Also child of record is Master-Detail relationship.