Created
January 8, 2013 21:34
-
-
Save zachelrath/4488190 to your computer and use it in GitHub Desktop.
SOQL query for all Profiles with delete Permissions on an Sobject
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 Id,PermissionsDelete,Parent.Profile.Name,SobjectType | |
FROM ObjectPermissions | |
WHERE Parent.IsOwnedByProfile = TRUE | |
AND PermissionsDelete = TRUE | |
ORDER BY Parent.Profile.Name, SObjectType | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A visualforce page (or Skuid page!) could quickly be written around this to give it a navigable UI.