Skip to content

Instantly share code, notes, and snippets.

@zachelrath
Created January 8, 2013 21:34
Show Gist options
  • Save zachelrath/4488190 to your computer and use it in GitHub Desktop.
Save zachelrath/4488190 to your computer and use it in GitHub Desktop.
SOQL query for all Profiles with delete Permissions on an Sobject
SELECT Id,PermissionsDelete,Parent.Profile.Name,SobjectType
FROM ObjectPermissions
WHERE Parent.IsOwnedByProfile = TRUE
AND PermissionsDelete = TRUE
ORDER BY Parent.Profile.Name, SObjectType
@zachelrath
Copy link
Author

A visualforce page (or Skuid page!) could quickly be written around this to give it a navigable UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment