Sub topic 1
Object, Field and Record Access: Where Sharing Fits
Prerequisites
Assume you know basic Salesforce navigation, standard objects, users, profiles, permission sets, and simple SOQL. This chapter uses Account records as examples.
Salesforce evaluates access in layers:
- Object access controls whether a user can create, read, edit, or delete records of an object.
- Field access controls whether specific fields are visible or editable.
- Record access controls which individual records the user can open or change.
Sharing mainly controls record access. It cannot grant object or field permissions that a user does not already have.
Record Ownership Drives Sharing
Every record has an owner, usually a user or queue. Ownership gives the owner broad access and provides the starting point for other sharing behavior. For example, an Account owner can normally read and edit the Account when the user has the required Account permissions.
Ownership also matters because Salesforce can extend access from the owner to other users through the role hierarchy, sharing rules, teams, or manual shares. Ownership is therefore part of the sharing model, not just administrative information.
Object Permissions Come First
Profiles and permission sets provide object permissions. A user needs the appropriate object permission before record-level access can have an effect.
For example, a user with record-level edit access still cannot edit an Account without the Account Edit permission. A user with Read but not Edit can see an accessible record but cannot change it.
Org-Wide Defaults Set the Baseline
Org-wide defaults, or OWDs, define the default record access for users who do not own a record. Administrators usually start with the most restrictive useful setting and open access with additional sharing mechanisms.
| OWD setting | Baseline record access |
|---|---|
| Private | Only the owner and separately granted users can access the record |
| Public Read Only | All users with object read permission can view records, but only users with edit access can change them |
| Public Read/Write | All users with object permissions can view and edit records |
| Controlled by Parent | Access follows the related parent record |
OWD settings do not replace object permissions. Public Read/Write does not let a user edit an object when the user's profile and permission sets allow only reading.
Exercise
A user has Account Read permission, but the Account OWD is Private and the user does not own a particular Account. Can the user automatically view it?
Show answer
No. The user needs another access path, such as the role hierarchy, a sharing rule, an Account Team entry, or a manual share.