Sub topic 1
Where Field-Level Security Fits in the Salesforce Security Model
Prerequisites
Assume you know Salesforce objects, fields, records, and users. You should also know the basics of Setup, Object Manager, and permission assignments.
Where Field-Level Security Fits
Salesforce evaluates access in layers:
- Object permissions decide whether a user can create, read, edit, or delete records of an object.
- Field-level security (FLS) decides whether the user can read or edit specific fields on those records.
- Record-level security decides which individual records the user can access through organization-wide defaults, roles, sharing rules, teams, and manual sharing.
A user needs access at every relevant layer. For example, read access to the Account object does not automatically expose every Account field.
Profiles and Permission Sets: The Containers for Access
A profile provides a user's baseline permissions. A permission set adds permissions without changing the profile. A permission set group bundles multiple permission sets for a job function.
FLS settings are usually managed in profiles and permission sets. Effective access is generally additive: if any assigned permission source grants field access, the user receives that access. Removing a permission set does not remove access granted by another source.
Object Permissions and Why They Come First
Object permissions are the first gate. A user cannot use FLS to read an Account field if the user cannot read Account records at all. Likewise, Edit field access cannot create edit capability when the user lacks Edit permission on the object.
| Permission layer | Main question |
|---|---|
| Object permission | Can the user act on this object? |
| Field-level security | Can the user read or edit this field? |
| Record-level security | Can the user access this record? |
What Field-Level Security Controls: Read and Edit
FLS has two independent controls:
- Read determines whether the field value is visible.
- Edit determines whether the user can change the value.
Edit access normally implies read access. A field can be read-only, hidden, or readable and editable. FLS applies consistently across supported Salesforce interfaces and APIs, although custom Apex requires explicit enforcement.
> callout note > Treat hidden fields as protected data. Removing a field from a page layout only changes the page presentation; it does not provide the same security guarantee as FLS.
Setting Field Access in Setup
In Setup, open Object Manager, select an object, and open Fields & Relationships. Select a field, then choose Set Field-Level Security. Enable Read Access or Read-Only access for the required profiles. For scalable assignments, grant field permissions through a permission set or permission set group.
Choose the smallest audience that needs the field. Review both profile and permission-set assignments when troubleshooting unexpected access.
Exercise
A user can open Account records but cannot see Annual Revenue. Which layer should you inspect first?
Show answer
Inspect field-level security for Annual Revenue, then confirm that no assigned permission set grants or removes the expected access.