07-20-2023 12:30 PM
Is there an API call that I can run to list all organizations that the token has access to as an external admin? Many of the individual APIs run against an accounts home organization unless a specific organization ID is specified in the request, but I have not worked out how to get a list of org IDs that an access token has permissions to.
07-20-2023 02:32 PM
Unfortunately not. If I run that as a user that is an external administrator on other organizations it only returns their own org.
07-20-2023 11:02 PM
Hi @ablomfield,
Thanks for your patience so far!
The above API endpoint provided by @dstaudt is actually correct, but I believe when you're trying to list out the organizations with the API where you're already "External Admin", exactly that time you're not logged into that Org account in Control Hub.
Please note, this "External Admin" role is not permanent one to a User for an Org, once you login to the Control Hub of that Org - you get the role assigned as "External Admin", but that's only for a temporary basis and the external administrators are nothing but the Read-only administrator of your Org.
Once your login session destroys for that Control Hub Org account, your "External Admin" role to that Org is also gone.
You can find the same has been documented here as well - https://help.webex.com/en-us/article/fs78p5/Assign-organization-account-roles-in-Control-Hub#id_87926
I've highlighted the specific areas in the attached screen shot too which should help here.
So, you can login to those Orgs for the temporary basis and this /list-organizations API as well as /get-organization-details API would help you find the details of those Orgs.
Let us know for any further assistance on this.
Regards!
Sandip
Please Note: If you think the solution provided above was helpful and satisfactory, please accept it as a Solution! However if you want to discuss it further and get yourself unblocked, please don't hesitate to reply back on this thread and we'll try to answer those queries by the soonest. In that case, once all of your queries are cleared - finally you can mark it as "Accepted as Solution"
07-20-2023 01:14 PM
Would this be the one? https://developer.webex.com/docs/api/v1/organizations/list-organizations
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