Find Active, Inactive and Total users per Role vise across salesforce Org

Below script will be useful when we have to find out Active/Inactive/Total
users across sf org and No of roles are so many, so doing thing manually won't work.
I have prepared below apex script which can be execute in developer console or
workbench execute anonymous window.
I hope this will be useful for you.
Output will be like this when copied in csv file
.

 RoleId   total   inactive 
 00E900000016i8gEAA  1  null
 00E900000016i8oEA   1  1

Comments

Popular posts from this blog

How to change/update the profile of a User in Salesforce from apex code

Deep Dive into Salesforce to Salesforce Connection

File Migration from One Salesforce Org to Another Org using Skyvia