Salesforce Sharing and Security Cheat Sheet

“Sharing is Caring”, right?? That’s the attitude I like most about Salesforce Ohana. As I am preparing myself for Sharing and Visibility Designer Architect certification, I thought of sharing some of my study notes regarding Salesforce Sharing and Security.Security is the main pillar of Salesforce eco system and it is complex. It will give you fine-grained control over data access. So it requires a very good understanding of the concepts to implement in correctly.I will suggest everyone to go through these below articles to understand it clearly.A Guide to Sharing ArchitectureAn Overview of Force.com SecurityRecord-Level Access: Under the HoodI am not going to write everything what is written in these documents, rather I would like to provide a concise, sharp cheat sheet which you can refer anytime. So let’s start -Sharing Metadata Objects/Records:For standard object -> “Object[Share]”For custom object -> “Object__[Share]”Contains three types of sharing -> managed sharing, User managed sharing and Apex managed sharingFields present in the share object – access level, record ID, user or group IDShare records are not created for OWDs, role hierarchies, or the “View All”/”Modify All”/”View All Data”/”Modify All Data” permissions.If the owner of the record changes, sharing record with reason “Manual” will also be deleted.Implicit Sharing:This is applicable only for Accounts, Contacts, Cases and Opportunities.Access to parent record – If you have access to one of the child record, you will have...

Read More