You need to sign in to do that
Don't have an account?
How to find those profiles who don't have any users?
How can I find a list of profiles exists in SFDC who don't have any user assigned to them?
You need to sign in to do that
Don't have an account?
Please find the below explanation how you can find a list of profiles in SFDC who doesn't have any users.
If you read carefully attached are steps
1. Query for grabbing list of all profiles
2. Query for grabbing list of all user
3. Generate a list of Profile type to collect - 'profiles with no user'
4. Iterate to all profile - set up a flag as false
for each profile ( if user.profileId == profile.id) - based on Salesforce schema (if user.profileId matches with original profile id)
5. else if not - add that profile to our custom list
6. Display list of profile
The below code snippet matches your requirement criteria.
Please mark my solution as best answer if it helps you.
Best Regards,
Nagendra.P