How can I use a flow to remove Group A from a user if they are in Group B?

I would like to set up a flow that runs on login to evaluate if the user is in Group B and if they are remove them from Group A. Is there a step somewhere that can remove a user from a group?

Comments

  • Hi there!

    You can definitely get this set up using the Remove Account From Group step, Get Groups by Account ID, and a rule that will determine if the user is in Group A and Group B.

    First get all the groups that the user is in with the Get Groups By Account ID step. Then pass that into a rule that will evaluate if the user is in Group B. If the rule returns true, use the Remove Account From Group step to remove the user from Group B.


Sign In or Register to comment.