public Response addUserToGroups ( String username , UserGroupsEntity userGroupsEntity ) { return restClient . post ( "users/" + username + "/groups/" , userGroupsEntity , new HashMap < String , String > ( ) ) ; }
Adds the user to groups .