Sub topic 1
How Salesforce Layers Data Access
Prerequisites
Assume you know basic Salesforce navigation, standard and custom objects, profiles, permission sets, and simple records. Basic SOQL is useful but not required here.
How Salesforce Layers Data Access
Salesforce evaluates access in layers. Object permissions decide whether a user can create, read, edit, or delete records of an object. Field-level security decides which fields the user can see or change. Record access decides which individual records the user can open.
A user needs all three layers. For example, Read access to the Invoice object does not let a user open every invoice. The user also needs record access, and field-level security may still hide sensitive fields.
Record Ownership as the Starting Point
Every record has an owner, usually a user or a queue. Ownership normally gives the owner broad access to the record. The owner can often share the record, transfer ownership, or manage it according to object permissions.
Ownership is separate from object permission. A user may own an Account but lack the permission to delete Accounts. Ownership also does not automatically give access to every related record.
Org-Wide Defaults: The Most Restrictive Baseline
Org-wide defaults, or OWDs, define the minimum record access for users who do not own a record. Common settings include Private, Public Read Only, and Public Read/Write.
Start with the most restrictive setting that supports the business process. Then open access with the role hierarchy, sharing rules, teams, or individual shares. OWDs do not remove object permissions or field-level security.
| Layer | Main question |
|---|---|
| Object permission | Can the user work with this object? |
| Field-level security | Can the user see or edit this field? |
| Record access | Can the user access this particular record? |
Opening Access Upward with the Role Hierarchy
The role hierarchy opens access upward. Users higher in the hierarchy can generally access records owned by users below them, even when the OWD is Private. This models management visibility.
The hierarchy is not the same as a profile or permission set. Profiles and permission sets grant object and field permissions; roles primarily influence record visibility. Some objects can be configured so that hierarchy access is disabled.
Public Groups and Queues as Sharing Targets
A public group is a named collection of users, roles, or other groups. Sharing rules can grant access to a public group instead of listing users individually. A queue owns records and gives its members access to work those records.
Exercise
A user can read the Invoice object but cannot open a specific invoice. Which access layer should you check first?
Show answer
Check record access, beginning with the invoice's owner and org-wide default. Then check the role hierarchy and any sharing mechanism.