What Is Field Level Security In Salesforce?
Field-level security in salesforce controls whether a user can see and edit the value for a particular field on an object’s record, unlike page layouts which only control the visibility of the field on detail and edit pages of an object. It secures the visibility of fields in any part of the app including related lists, list views, reports, and search results.
It restricts a user to access the field anywhere in the org such as in the formula field, but if we hide it from the page layout then the user can use the field value of that field. It will only be hidden in the page layout.
Field-level security can be applied to multiple fields on a single profile or permission set and can also be applied to a single field on all profiles.
Methods Used To Achieve Field-Level Security In Salesforce
1. Restrict Field Access with a Profile
Restrict a user’s general access to fields by providing Read Access and Edit Access.
2. Add Field Access with a Permission Set
A permission set is for expanding a user’s access to fields that are restricted in their profile.
We can also set field-level security from field accessibility in Setup.