We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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);
}
The text was updated successfully, but these errors were encountered: