# What are Organization-Wide Defaults (OWD) and how do they establish baseline data security in Salesforce?

**Topic:** Admin · **Difficulty:** Medium · **Tags:** Admin, Security Model, OWD

Read it on the site: https://www.forcechallenges.com/interview-questions/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.

**Code / config example:**
```text
Scenario: Account OWD = Private, Opportunity OWD = Private
Setup path : Setup > Sharing Settings > Edit Organization-Wide Defaults
Then add    : Sharing rule "Share EMEA Accounts with EMEA Support" (criteria Region = EMEA, Read Only)
Verify with : "Sharing" button on a record, or run "Login As" to test visibility
```

**Hidden gotchas & must-remember points:**
- OWD never grants object permission; profile/permission set CRUD still needed.
- Making OWD more restrictive can remove access that users relied on; test in a sandbox.
- Changing OWD triggers async sharing recalculation, delayed visibility.
- Contact "Controlled by Parent" ties access to the Account only when contact is linked to one; private contacts are owner-only.
- External OWD must not be more permissive than internal OWD.
- Users with View All Data or Modify All Data ignore OWD.

**Best practice:** Start with the most restrictive OWD that is workable and open access deliberately through hierarchy, rules and teams.

---
Source: ForceChallenges · last updated 2026-11-02
