Created
June 16, 2026 19:11
-
-
Save surajp/3ba14325c6ccf5de3ad5b36bb0d53e7f to your computer and use it in GitHub Desktop.
Get details of users with privileges that need phishing resistant 2FA
This file contains hidden or 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 Assignee.Id, | |
| Assignee.Name, | |
| Assignee.Email, | |
| Assignee.Username, | |
| Assignee.IsActive, | |
| PermissionSet.Name, | |
| PermissionSet.Profile.Name, | |
| PermissionSet.PermissionsModifyAllData, | |
| PermissionSet.PermissionsViewAllData, | |
| PermissionSet.PermissionsCustomizeApplication, | |
| PermissionSet.PermissionsAuthorApex | |
| FROM PermissionSetAssignment | |
| WHERE Assignee.IsActive = TRUE | |
| AND (PermissionSet.PermissionsModifyAllData = TRUE | |
| OR PermissionSet.PermissionsViewAllData = TRUE | |
| OR PermissionSet.PermissionsCustomizeApplication = TRUE | |
| OR PermissionSet.PermissionsAuthorApex = TRUE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment