Sub topic 5
Choosing an access level: Private, Public Read Only, Public Read/Write and others
This chapter assumes you know how to open Setup, that users get object permissions from profiles and permission sets, and that every record has an owner. Here you pick the baseline access level for an object.
What the setting controls
An org-wide default (OWD) is set per object. It defines the most access a user gets to records they do not own, before any role hierarchy, sharing rule, team or manual share adds more. Sharing can only open access beyond the OWD. It cannot make the OWD stricter.
The OWD never grants access to the object itself. A user who lacks Read permission on Account cannot see any account, even when the OWD is Public Read/Write.
You find the setting in Setup under Security > Sharing Settings, in the Organization-Wide Defaults section.
The common access levels
| Level | Other users can | Typical use |
|---|---|---|
| Private | Not see or edit records they do not own | Opportunities with sensitive pipeline data |
| Public Read Only | View records but not edit them | Accounts that the whole company should see |
| Public Read/Write | View and edit records | Shared reference data that anyone may update |
| Public Read/Write/Transfer | View, edit and change the owner (Leads and Cases only) | Queue-based work such as lead routing |
| Public Full Access | View, edit, transfer and delete (Campaigns only) | Marketing-wide collaboration |
| Controlled by Parent | Inherit access from the parent record | Contacts under Accounts, and detail records in a master-detail relationship |
Some objects offer their own options. Price Books use Use, View Only and No Access. Calendars have their own list. Activities are either Private or Controlled by Parent.
How to choose
Start from the most restrictive level the business can tolerate, then open access where needed. Ask these questions in order:
- Is there any user who must not see another user's records? If so, use Private.
- Must everyone see the records but only owners edit them? Use Public Read Only.
- Is it harmless for anyone to edit them? Only then use Public Read/Write.
Moving from Private to a public level is easy and low risk. Moving the other way can suddenly hide records from users, so decide carefully at the start.
Effects to expect
- With Private, a user sees records they own, records owned by users below them in the role hierarchy, and records shared with them by other means.
- With Public Read Only, a non-owner who needs to edit a record needs a sharing rule, team membership, a manual share, or a higher role.
- Changing an OWD makes Salesforce recalculate sharing. In a large org this can take a while, and some changes are blocked while another recalculation runs.
- Loosening an OWD, for example from Private to Public Read Only, makes existing share rows redundant. Salesforce removes them for you.
Exercise
Your sales team works on Opportunities. Reps must see only their own deals, but managers must see their reps' deals, and everyone has Read and Edit permission on Opportunity. Which OWD do you set for Opportunity, and what gives managers their access?
Show answer
Set the Opportunity OWD to Private. Managers get access through the role hierarchy, because records owned by users below them in the hierarchy are visible to them (with Grant Access Using Hierarchies enabled, which is the default for standard objects).