Hi all, I try to update the port management privileges of several users over roughly 200 networks. While I can update the admin with network rights, the api does not accept when I try to update the port management privileges. It seems to me that it cannot be done right now, but perhaps someone here has some more info?
What works:
dashboard.organizations.updateOrganizationAdmin(
org_id,
admin_id,
networks=[{'id': net, 'access': "read-only"}]
What does not work:
dashboard.organizations.updateOrganizationAdmin(
org_id,
admin_id,
networks=[{'id': net, 'access': "switchport", 'privilegeName': 'CustomerAdmin'}]
It gives me an error that the access must be "full, read-only, guest-ambassador or monitor-only".
However, when I do a getOrganizationAdmin, this is what I get:
{'id': '*snip*',
'name': 'some name',
'email': 'some_email@domain.com',
'authenticationMethod': 'Email',
'orgAccess': 'read-only',
'accountStatus': 'ok',
'twoFactorAuthEnabled': False,
'hasApiKey': True,
'lastActive': '2022-06-30T11:23:36Z',
'networks': [{'id': 'some_id',
'access': 'switchport',
'privilegeName': 'CustomerAdmin'},
So it seems I can read out port management privileges, but cannot update them. Does anyone know a way around this?