Find Active, Inactive, total users in all public group across Salesforce Org

If you have come across requirement, where you have to do clean-up of groups and you have no idea where to start.
You can prepare a list of Groups and check the count of Total, Inactive, Active users in those groups and reach some conclusion.

I have prepared an apex code script, which does the same job and the final output is CSV file text which you can copy and paste in CSV file and get the final result.





output String :: 
GroupId total inactive 
00G2v000004FWzCEAW 1 1
00G90000001mENyEAM 2 1
00G90000001mEO3EAM 1 1
Final Outcome will be like this
 GroupId  total  inactive  Active(do csv formula)
 00G2v000004FWzCEAW 1 1 0
 00G2v000004FWzCEAM 2 1 1
 00G90000001mEO3EAM 1 1 0

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