function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
SELECT Id, AssigneeId FROM PermissionSetAssignment WHERE PermissionSetId = <yourID>
List<PermissionSetAssignment> results = [ SELECT Id, AssigneeId, Assignee.Name FROM PermissionSetAssignment WHERE PermissionSetId = '0PS300000000000']; for(PermissionSetAssignment thispsa : results) { System.debug(thispsa.Assignee.Name); }
Do you have the ID to hand? Or are you dynamically trying to query that too?
To put it into Apex, it'd be something like: