You need to sign in to do that
Don't have an account?

Count of users assigned to a profile
Hello,
Lookin gto do an audit on the number of users assigned to all of the profiles in an org. Is there a way to get the user count on each profile? Goal is to remove/consolidate profiles if possible.
Thanks
P
Lookin gto do an audit on the number of users assigned to all of the profiles in an org. Is there a way to get the user count on each profile? Goal is to remove/consolidate profiles if possible.
Thanks
P
All Answers
There is no standard way to this. What you can do is you can simply create a VF page or Lightning component which will do this for you.
Your goal is not easy to achive but yes this possible.
Please let me know if need any other assistance.We can directly connect on my gmail.
Thanks
Hemant
Email : sonihemant.jaipur@gmail.com
1. Exporting all (Active) users with the profile Id.
2. Exporting all profiles including Name and Id.
3. Bash the two exports together in something like Excel.
Manual, but perhaps easier to achieve than doing a VF page with controller and queries etc for what may be a one-off activity.
Regards
Andrew G
That's perfect!
Thank you,
P
Thnx!
Additional: TO filter on only active users, add 'WHERE IsActive = TRUE'. Otherwise it will include all your old inactive users.
SELECT count(Id), Profile.Name
FROM User
WHERE IsActive = TRUE
GROUP BY Profile.Name