You need to sign in to do that
Don't have an account?
jaishri
I want to query all profiles, permission set with users and also want to count each profile how many users what permission set they assigned . Can anyone help me
SELECT PermissionSet.Profile.Name , PermissionSet.Name ,AssigneeId , Assignee.Name FROM PermissionSetAssignment GROUP BY PermissionSet.Profile.Name ORDER BY PermissionSet.Profile.Name ASC
You can't able to get all in single query.
count of users for each profile use the below query. try with below query for count of users assigned to permissionset.
If this helps, Please mark it as best answer.
Thanks!!