简体   繁体   中英

How can I get a list of other Azure Active Directory organizations I'm a Guest User of using an API eg, Graph

I want to be able to list the external Azure Active Directory organizations which my users are Guests of using an API call.

I can see this information readily in the the Azure Portal but so far cannot see how to get it from Microsoft Graph API

Organizations List

Hope somebody has solved this please

Thanks for any advice

You can retrieve all Azure AD instances for your user using the tenants list endpoint:

https://docs.microsoft.com/en-us/rest/api/resources/tenants/list

If you have the Azure CLI installed, you can check it using:

az rest --uri https://management.azure.com/tenants?api-version=2020-01-01 --method get

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM