Query Permission Set Id for Users with specific Profile #inSalesforce

Query Permission Set Id for Users with specific Profile


SELECT PermissionSetId, AssigneeId FROM PermissionSetAssignment WHERE PermissionSet.Name = 'someExamplePermissionSet' AND AssigneeId IN (SELECT Id FROM User WHERE Profile.Name = 'sampleProfile')

Comments