Skip to content

Commit 392fda2

Browse files
committed
Fix group creation error
1 parent 8630435 commit 392fda2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

user_sync/connector/connector_umapi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
import jwt
2727
import umapi_client
28+
from umapi_client import GroupAction
2829

2930
import user_sync.connector.helper
3031
import user_sync.helper
@@ -200,7 +201,7 @@ def iter_user_groups(self):
200201

201202
def create_group(self, name):
202203
if name:
203-
group = umapi_client.UserGroupAction(group_name=name)
204+
group = GroupAction(group_name=name)
204205
group.create(description="Automatically created by User Sync Tool")
205206
return self.connection.execute_single(group)
206207

0 commit comments

Comments
 (0)