Remove a user or list of users from a group

How would one go about using the Python SDK to remove a user from a group or an entire list of users? Can someone point me to some sample code that does that? I’m having some issues finding something that works. Something like the corollary of add_user_to_group_by_id. I’ve seen that you can deactivate and then delete a user but I don’t want to delete the user entirely, just remove them from the group.

You should be able to iterate through your list of users and use the remove_user_from_group method to remove each user from the group in question

1 Like

Many Thanks! - That did work.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.