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
{{ message }}
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
I am not able to list users in organisation with roles.
Is there a call or combination of calls I can do to retrieve the information?
Latest version of pyvcloud installed in combination with vCloud 10.2.1.17444397
I found the response:
users = org.list_users()
for user in users:
name = user.get('name')
usr = org.get_user(name)
print(usr.keys())
print(usr.values())
print(Utils.to_dict(usr))
dict_usr = Utils.to_dict(usr)
for key, value in dict_usr.items():
print(key, value)
['name', 'id', 'href', 'type']
['engineer', 'urn:vcloud:user:2b1c556c-70c3-4f52-9c8f-c498f979e5da', 'https://vcloud', 'application/vnd.vmware.admin.user+xml']
{'name': 'engineer', 'id': '2b1c556c-70c3-4f52-9c8f-c498f979e55a',
'Link': None, 'Description': 'Description', 'FullName': 'devops engineer',
'EmailAddress': '[email protected]', 'Telephone': '+(1)1111111', 'IsEnabled':
'true', 'IsLocked': 'false', 'IM': 'test_user_im', 'NameInSource': 'engineer',
'IsExternal': 'false', 'ProviderType': 'INTEGRATED', 'IsGroupRole':
'false', 'Role': None, 'GroupReferences': None}
name engineer
id 2b1c556c-70c3-4f52-9c8f-c498f979e5da
Link None
Description Description
FullName devops engineer
EmailAddress [email protected]
Telephone +(1)11111111
IsEnabled true
IsLocked false
IM test_user_im
NameInSource engineer
IsExternal false
ProviderType INTEGRATED
IsGroupRole false
Role None
GroupReferences None
Logging out
Is there anyone who knows why value is none, or how I can retrieve users with roles?
Kind Regards
The text was updated successfully, but these errors were encountered:
Hi all,
I am not able to list users in organisation with roles.
Is there a call or combination of calls I can do to retrieve the information?
Latest version of pyvcloud installed in combination with vCloud 10.2.1.17444397
I found the response:
Is there anyone who knows why value is none, or how I can retrieve users with roles?
Kind Regards
The text was updated successfully, but these errors were encountered: