You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we should add a test on the user.identities existence to avoid the following error (with the root account for example)
if user.identities and len(user.identities) > 0 and 'extern_uid' in user.identities[0]:
gitlab_group['members'].append({
'username': user.username,
'name': user.name,
'identities': user.identities[0]['extern_uid'],
'email': user.email
})
else:
print(f"User {user.username} does not have a valid 'extern_uid' in identities.")
Here an execution with the additional test:
Thank you again!
Cheers,
Nicolas
The text was updated successfully, but these errors were encountered:
Hi/Bonjour @MrBE4R,
Thank you/Merci beaucoup for the script.
I think we should add a test on the user.identities existence to avoid the following error (with the root account for example)
Here an execution with the additional test:
Thank you again!
Cheers,
Nicolas
The text was updated successfully, but these errors were encountered: