How to find users part of a Permission Sets in Salesforce?

How to find users part of a Permission Sets in Salesforce?

SOQLs:
 
SOQL to find users part of the Permission Set:
SELECT Assignee.Name FROM PermissionSetAssignment
WHERE PermissionSetId = ‘0PS8c000003LCCL’
 


SOQL to find users part of the Permission Group :
SELECT Assignee.Name FROM PermissionSetAssignment
WHERE PermissionSetGroupId IN ( SELECT PermissionSetGroupId FROM PermissionSetGroupComponent WHERE PermissionSetId = ‘0PS8c000003LCCL’ )

Test User was directly added to the Permission Set.

Test Admin user was added via Permission Set Group.

Leave a Reply