Created
September 21, 2020 07:45
-
-
Save Patlatus/c22c419638d123fd5b75f0de6e4dbd3e to your computer and use it in GitHub Desktop.
Find out which permission set provides read access to a field
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') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment