Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove User from Group #361

Open
SammyDerksen opened this issue Feb 11, 2021 · 0 comments
Open

Remove User from Group #361

SammyDerksen opened this issue Feb 11, 2021 · 0 comments

Comments

@SammyDerksen
Copy link

There is no method to remove a user from a group. Here is suggestion:

Add in Transport:

public void removeUserFromGroup(int userId, int groupId) throws RedmineException {
logger.debug("removing user " + userId + " from group " + groupId + "...");
URI uri = getURIConfigurator().getChildIdURI(Group.class, Integer.toString(groupId), User.class, Integer.toString(userId));
HttpDelete httpDelete = new HttpDelete(uri);
String response = send(httpDelete);
logger.debug(response);
}

Add in User:

public void removeFromGroup(int groupId) throws RedmineException {
transport.removeUserFromGroup(this.getId(), groupId);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant