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.
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'