I'm trying to figure out how to query all users who have Author Apex
permission (or any other system permissions). I thought it would be straightforward, but I don't see where it would be stored. With ObjectPermissions
I can see which objects can be accessed, and with SetupEntityAccess
I can see which setup entities can be accessed. Looking at the SetupEntityType
picklist, the available types of setup entity are:
- ApexClass
- ApexPage
- ConnectedApplication
- ConnectedApplication
- CustomPermission
- ExternalDataSource
- ExternalSocialAccount
- NamedCredential
- TabSet
None of these types seem to help either. Maybe I'm just forgetting something obvious, but I can't think of how I would query for system permissions. Can it be done? Using which object?