Query Which Profiles Have Read Access To Specific Object #inSalesforce

Query Which Profiles Have Read Access To Specific Object #inSalesforce

SELECT Profile.Name FROM PermissionSet
WHERE IsOwnedByProfile = true AND Id IN (
    SELECT ParentId FROM ObjectPermissions
    WHERE PermissionsRead = true
    AND SObjectType = 'MyObject__c'
)

Comments