07-12-2022 11:09 AM
How to remove admin role from a Webex subscriber via API?
Also, if I delete a Webex subscriber from an organization, and this Webex subscriber is the only user with an Admin Role, will subsequent add/remove/change Webex subscribers work?
If subsequent add/remove/change Webex transactions will not work because you need at least 1 Webex subscriber with an admin role in the organization - what is the best way to transfer the admin role to a different Webex subscriber via API calls?
Thank you!
07-13-2022 10:42 AM
There is a role API that lets you fetch all roles available in your organization.
There is an API that allows you to update a user's roles, ie. adding or removing the admin role. You would have to read the user's current roles and then update the person with all the same settings except for the admin role (or in addition with it).
For sure, these calls need to be done by an admin and the integration needs the documented admin scopes. I think you cannot remove the admin role from yourself.
(I will move this post from admin to the developer forum)
07-20-2022 07:53 AM
Thank you @dtibbe for your response. I think the issue is that all of the roles available in the list are some form of "admin" type, but I don't see a role that is just "user" type with no admin privileges which is what I am looking for - would you happen to know which of these admin types would be the equivalent of plain "user" role?
Thank you very much for your help!
{ "items": [ { "id": "Y2lzY29zcGFyazovL3VzL1JPTEUvaWRfdXNlcl9hZG1pbg", "name": "User Administrator" }, { "id": "Y2lzY29zcGFyazovL3VzL1JPTEUvaWRfcmVhZG9ubHlfYWRtaW4", "name": "Read-only Administrator" }, { "id": "Y2lzY29zcGFyazovL3VzL1JPTEUvYXRsYXMtcG9ydGFsLnN1cHBvcnQ", "name": "Support Administrator" }, { "id": "Y2lzY29zcGFyazovL3VzL1JPTEUvYXRsYXMtcG9ydGFsLnBhcnRuZXIuaGVscGRlc2suYWR2YW5jZWQ", "name": "Advanced Help Desk Administrator" }, { "id": "Y2lzY29zcGFyazovL3VzL1JPTEUvaWRfZGV2aWNlX2FkbWlu", "name": "Device Administrator" }, { "id": "Y2lzY29zcGFyazovL3VzL1JPTEUvYXRsYXMtcG9ydGFsLnBhcnRuZXIuc2FsZXNhZG1pbg", "name": "Sales Administrator" }, { "id": "Y2lzY29zcGFyazovL3VzL1JPTEUvYXRsYXMtcG9ydGFsLnBhcnRuZXIuaGVscGRlc2s", "name": "Help Desk Administrator" }, { "id": "Y2lzY29zcGFyazovL3VzL1JPTEUvaWRfZnVsbF9hZG1pbg", "name": "Full Administrator" } ] }
07-20-2022 11:08 AM
An empty role[] list is equivalent to 'basic user'
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide