Query Permissions in a Profile: (All Objects)

Query Permissions in a Profile: (All Objects)


Use:

select sObjectType, PermissionsCreate, PermissionsRead, PermissionsEdit, PermissionsDelete, PermissionsModifyAllRecords,PermissionsViewAllRecords from ObjectPermissions where ParentId IN (select Id from PermissionSet where PermissionSet.Profile.Name = 'System Administrator')


Output:



Comments