From 447ad1eb51e26d6d38937496f6983ef96de0c7b5 Mon Sep 17 00:00:00 2001 From: Mauwork <59996707+Mauwork@users.noreply.github.com> Date: Fri, 30 Aug 2024 08:48:53 +0200 Subject: [PATCH] Fixed confluence add_user_group to use right URL (#1425) * Fixed add_user_group to use right URL * Fixed indentation --- atlassian/confluence.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/atlassian/confluence.py b/atlassian/confluence.py index 560c1170b..34941596e 100644 --- a/atlassian/confluence.py +++ b/atlassian/confluence.py @@ -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,