taskadapter / redmine-java-api

Redmine Java API
Apache License 2.0
269 stars 162 forks source link

Removing a User from a Group #243

Closed habrahams closed 8 years ago

habrahams commented 8 years ago

Hi, Firstly, thanks for a great API.

I have a question regarding the removal of a user from a group. I can add a user successfully, but I can't find any way of removing a user from a group. I'm currently using version 2.6.0. with Redmine 3.1.1 stable. Am I missing something?

Thanks again.

habrahams commented 8 years ago

If you add the following metod to the UserManager Class. You can remove a user from a group. public void removeUserFromGroup(User user, Group group) throws RedmineException { transport.deleteChildId(Group.class, Integer.toString(group.getId()), user, user.getId()); }