You need to sign in to do that
Don't have an account?
ExploreForce
batch job for idnetifying users in multiple groups
How to write batch job?
Batch job should look through all GroupMember table
if one user is in multlipe group, it should remove users from other groups
Batch job should look through all GroupMember table
if one user is in multlipe group, it should remove users from other groups
1. Query the list of active users in your batch
2. Then inside the excute method check whether the user is assigned to more than one group.
Try the below code
Thanks,
Karan