Skip to content

Commit c6835c7

Browse files
dnicholdnichol
authored andcommitted
Fix to include externalName in update
1 parent acdb21d commit c6835c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/update_usergroups_from_csv.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ def update_user_group(hub_client, existing_name, new_name, user_group):
102102

103103
# Update the name.
104104
user_group['name'] = new_name
105+
#if user_group.get('externalGroupName') and user['externalGroupName'] == name:
106+
user_group['externalName'] = new_name
105107

106108
logging.info(f"Updating user group {existing_name} to {user_group['name']} for user group {user_group_url}")
107109
hub_client.session.put(user_group_url, json=user_group)

0 commit comments

Comments
 (0)