Quick Reference - How Salesforce Determines Record Access for a User?

This is the pictorial representation of how Salesforce determines record access for a user.

  1. When a user needs to access a record, Salesforce will first check whether the user's profile has the required permission to access the object. If the user's profile does not have the required permission, the user will not be able to access the record. If the profile has the required permissions, the system will proceed to step 2.

  2. The system checks the "View All Data" system permission. If granted, the user will be able to access the record.

  3. Else, the system will determine if the user is the owner of the record. If yes, the user will be able to access the record.

  4. Else, the system will check the Organization-Wide Default (OWD) setting for that object. If OWD is set to Public Read Only or Public Read/Write, the user will be able to access the record.

  5. Else, the system will check if the user is above the owner in the role hierarchy. If yes, the user will be able to access the record.

  6. Else, sharing rules are checked. If the user has been granted access to the record through Apex sharing, sharing rules, or manual sharing, the user will be able to access the record.

  7. If none of the above requirements are met, the user will not be able to access the record.

References & Useful URLs