What are Organization-Wide Defaults (OWD) and how do they establish baseline data security in Salesforce?
Answer
Basics: Salesforce record security works by starting locked down and then opening access. OWD is that starting point. If Account OWD is Private, a user can see only accounts they own (plus what other mechanisms grant). It does not control object permissions, which come from profiles and permission sets.
How it works: Setup > Sharing Settings > Organization-Wide Defaults. Options by object:
- Private, Public Read Only, Public Read/Write.
- Public Read/Write/Transfer (Leads, Cases), Public Full Access (Campaigns).
- Controlled by Parent (detail objects, Contacts when linked to an Account, etc.).
- Use / View Only / No Access for Price Books. There is also a separate External OWD for Experience Cloud/portal users, which must be equal to or more restrictive than internal. Access is the union of: ownership, OWD, role hierarchy, sharing rules, teams, manual sharing, Apex managed sharing, and implicit sharing. Changing OWD triggers a sharing recalculation.
Advanced / deep dive: OWD defines the maximum restriction; you cannot use sharing to make a record more private. Object permissions still gate everything: a user with Public Read Only OWD but no Read on the object sees nothing, while View All/Modify All (object) and View All Data/Modify All Data (system) bypass sharing. Data volume matters: Private OWD creates share rows (AccountShare etc.) and recalculation can take long in big orgs. Pick the most restrictive OWD that the business can tolerate, then open up. "Grant Access Using Hierarchies" can be unchecked for custom objects (not for standard objects). Master-detail children inherit from the parent (Controlled by Parent). Lookups do not inherit.