Is there a way to access FLS via REST API or Apex? I'm trying to find out what FLS profile are Visible and what are Read-only. I couldn't find much info online.

enter image description here


use REST API to perform a query on FieldPermissions object.

For example to get FLS for System Administrator on all Account fields perform the following query

select Id, SObjectType, Field, PermissionsRead, PermissionsEdit
from FieldPermissions
where parentid in (
    select id
    from permissionset
    where IsOwnedByProfile= true 
        and PermissionSet.Profile.Name = 'System Administrator'
and SObjectType = 'Account'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.