Skip to content

Commit

Permalink
Fixed confluence add_user_group to use right URL (#1425)
Browse files Browse the repository at this point in the history
* Fixed add_user_group to use right URL

* Fixed indentation
  • Loading branch information
Mauwork authored Aug 30, 2024
1 parent 388a340 commit 447ad1e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions atlassian/confluence.py
Original file line number Diff line number Diff line change
Expand Up @@ -3068,10 +3068,8 @@ def add_user_to_group(self, username, group_name):
:param group_name: str - name of group to add user to
:return: Current state of the group
"""
url = "rest/api/2/group/user"
params = {"groupname": group_name}
data = {"name": username}
return self.post(url, params=params, data=data)
url = f"rest/api/user/{username}/group/{group_name}"
return self.put(url)

def add_space_permissions(
self,
Expand Down

0 comments on commit 447ad1e

Please sign in to comment.