To find which permission set provides read access to a field, use the following SOQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT ParentId FROM FieldPermissions WHERE | |
Field = 'CustomObject__c.CustomField__c' | |
AND SObjectType = 'CustomObject__c' | |
AND PermissionsRead = true | |
AND ParentId IN (SELECT PermissionSetId from PermissionSetAssignment WHERE AssigneeId = '005USerID0000AAA') |