Skip to content

Commit 447ad1e

Browse files
authored
Fixed confluence add_user_group to use right URL (atlassian-api#1425)
* Fixed add_user_group to use right URL * Fixed indentation
1 parent 388a340 commit 447ad1e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

atlassian/confluence.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -3068,10 +3068,8 @@ def add_user_to_group(self, username, group_name):
30683068
:param group_name: str - name of group to add user to
30693069
:return: Current state of the group
30703070
"""
3071-
url = "rest/api/2/group/user"
3072-
params = {"groupname": group_name}
3073-
data = {"name": username}
3074-
return self.post(url, params=params, data=data)
3071+
url = f"rest/api/user/{username}/group/{group_name}"
3072+
return self.put(url)
30753073

30763074
def add_space_permissions(
30773075
self,

0 commit comments

Comments
 (0)