Sub topic 3
Org-wide defaults: the most restrictive baseline
This chapter assumes you know what profiles and permission sets do, can find your way around Setup, and understand objects, records, and fields. Everything after this chapter opens access up from the baseline set here.
What org-wide defaults do
Org-wide defaults (OWDs) set the baseline level of record access for each object. They answer one question: if a user has no other reason to see a record, what can they do with it?
OWDs are the only layer that restricts access. Record ownership, the role hierarchy, sharing rules, manual sharing, and teams can all grant more access, but none of them can take away what OWD allows. So you set OWD to the most restrictive level any user needs, then open access up from there.
OWDs apply to records the user does not own. Owners always keep full access to their own records.
Access levels
| Setting | What a non-owner can do |
|---|---|
| Private | Nothing, unless access is granted another way |
| Public Read Only | View the record |
| Public Read/Write | View and edit the record |
| Public Read/Write/Transfer | View, edit, and transfer ownership (Leads and Cases) |
| Controlled by Parent | Access follows the parent record |
| Public Full Access | View, edit, transfer, delete, and share (Campaigns) |
Which options you see depends on the object. Detail objects in a master-detail relationship use Controlled by Parent, and you cannot change it.
OWD does not override object permissions
OWD works together with object permissions from profiles and permission sets. Both must allow the action.
- A user with Read on Invoices and a Public Read/Write OWD can view and edit any invoice only if their profile or permission set also grants Edit.
- A user whose profile lacks Read on Invoices cannot see any invoice, even if OWD is Public Read/Write.
- The "View All" and "Modify All" permissions bypass OWD for that object.
Setting an OWD
- In Setup, enter Sharing Settings in Quick Find and open it.
- Find the object in the Organization-Wide Defaults list and click Edit.
- Choose the Default Internal Access level. If External Sharing Model is enabled, also set Default External Access.
- Leave Grant Access Using Hierarchies selected unless you have a specific reason to clear it.
- Save.
Changing an OWD triggers a sharing recalculation. Making it more restrictive can remove access that users relied on, so check your sharing rules and teams first. Large orgs may wait for the recalculation to finish.
How OWD fits with the other layers
Common mistakes
- Setting OWD to Public Read/Write for convenience. You then cannot restrict access later with sharing tools, because they only add access.
- Changing OWD in production without checking dependencies. A move to Private can hide records from users who relied on the old setting.
- Forgetting that Grant Access Using Hierarchies is a separate checkbox. For custom objects you can clear it, which stops managers from inheriting access to their reports' records. It is always on for standard objects.
- Assuming OWD stops owners from seeing their own records. It does not.
Example
Suppose Invoice__c is set to Private. Maria owns an invoice. Sam, who is not in her management chain, has Read permission on Invoices but cannot see Maria's record. If you change OWD to Public Read Only, Sam can open it but cannot edit it, even if his profile includes Edit. The more restrictive of the two layers wins.
Exercise
A user's profile grants Read and Edit on the custom object Invoice_c. The OWD for Invoice_c is Public Read Only. The user does not own a given invoice and has no other sharing. What can the user do with that invoice?
Show answer
The user can view it but cannot edit it. Edit permission on the profile allows the action in general, but OWD limits non-owned records to read only, and the more restrictive layer applies. To allow editing you would need a sharing rule, manual share, team, or a more open OWD.