Skip to main content

Find out what permissions a user has

SQL query below (replace username)

Select o.SystemModstamp, o.Parent.IsOwnedByProfile, o.SobjectType, o.PermissionsViewAllRecords, o.PermissionsRead, o.PermissionsModifyAllRecords, o.PermissionsEdit, o.PermissionsDelete, o.PermissionsCreate, o.ParentId, o.LastModifiedDate, o.LastModifiedById,o.Id, o.CreatedDate From ObjectPermissions o
WHERE (ParentId
IN (SELECT PermissionSetId
FROM PermissionSetAssignment
WHERE Assignee.UserName = 'first.last@domain.com'))

Comments

Post a Comment

Popular posts from this blog

Override Name in the Salesforce Cloud Console

Service Cloud Console HyperLink Opens new window outside of the console, Opens new tab inside the console. HYPERLINK("javascript:if(typeof(srcUp)=='function') {srcUp('/" & Id & "?isdtp=vw');}"+ " else {window.location.href='/" & Id & "'}", User__r.FirstName + ' ' + User__r.LastName, "_self" ) Checks if the srcUp exists and if it does, you're in the console.