Sub topic 6
Where FLS applies: UI, reports, list views, search, and APIs
This chapter assumes you know what Read and Edit field access mean and how to grant them through profiles and permission sets. It covers which features respect those settings and which do not.
The general rule
Field-level security (FLS) is enforced wherever a user works with data through the standard platform. If a user lacks Read access to a field, Salesforce hides the field. If the user has Read but not Edit, the field is shown but cannot be changed.
The main exception is Apex code, which runs in system mode by default. A later chapter covers that case.
Where FLS is enforced
| Surface | Without Read access | With Read but no Edit |
|---|---|---|
| Record pages | Field is not shown | Field is shown as read-only |
| List views | Column is unavailable, and the field cannot be used in filters | Column is visible, and inline edit is off for the field |
| Reports | Field does not appear in the report builder, and is not returned in results | Field is visible in results |
| Search | Field values are not searchable, and the field is not shown in results | Field is searchable and visible |
| REST and SOAP APIs | Field is missing from describe results, and a query on it fails | Field can be queried, but writes to it fail |
| Data import tools | Field is not available for mapping | Field cannot be mapped for loading |
The details differ a little by feature, but the pattern is the same. Read controls visibility. Edit controls changes.
How an API call behaves
The API is a common source of confusion. A user with no Read access on Internal_Notes__c who runs this query gets an error:
SELECT Id, Name, Internal_Notes__c FROM AccountThe error says the field does not exist or is not accessible. The API does not return the row with a blank value. It rejects the query. A write to a field without Edit access is also rejected.
Integrations often hit this. The integration user's profile or permission set must include every field the integration reads or writes.
Follow the request
The diagram shows how a field request from the UI or API is checked.
Common mistakes
- Assuming a report shows everything the user can query. Reports follow FLS and record sharing together. A user can lack a field or lack the records.
- Testing as an administrator. Admins usually have access to every field, so problems with FLS stay hidden. Use "Login as" or a test user with the real permission sets.
- Forgetting integration users. A failing integration after a field is added often means the field was never added to the integration's permission set.
Exercise
An integration user queries SELECT Id, Name, Internal_Notes__c FROM Account through the REST API. The user has Read access to Account but not to Internal_Notes__c. What happens, and what is the fix?
Show answer
The query fails with an error saying the field is not accessible. It does not return blank values. The fix is to grant Read access on Account.Internal_Notes__c to the integration user, preferably through a permission set. Grant Edit as well only if the integration writes to the field.