-
Notifications
You must be signed in to change notification settings - Fork 698
Closed
Description
atlassian-python-api/atlassian/confluence.py
Line 3062 in 42ed0b0
def add_user_to_group(self, username, group_name): |
This function is using the wrong URL and it should be a "PUT" not a "POST" see:
https://docs.atlassian.com/ConfluenceServer/rest/8.2.0/#api/user/{username}/group/{groupName}-update
Fix that should work:
def add_user_to_group(self, username, group_name):
"""
Add given user to a group
:param username: str - username of user to add to group
:param group_name: str - name of group to add user to
:return: Current state of the group
"""
url = f"rest/api/user/{username}/group/{group_name}"
return self.put(url)
Metadata
Metadata
Assignees
Labels
No labels