Hello, I am trying to write a plugin that will remove a user from all of the groups that they belong to.
Currently, I can get the plugin to remove a user from a specified group with the following code:
GroupManager groupManager = GroupManager.getInstance();
Group group = groupManager.getGroup(groupName);
Is there any way to do something like above, but for all the groups a user is a member of?