简体   繁体   中英

Azure Active Directory - get tenant list

I am aware of the Powershell cmdlet Get-AzTenant and the REST API call GET https://management.azure.com/tenants?api-version=2019-06-01 to query the AD tenants wrt the current user context.

As this requires user_impersonation wrt Azure Resource Management, is there an alternative with ie Microsoft Graph?

An example, where this list of tenants is used

No, there is no such API in Microsoft Graph or Azure AD Graph.

I want to use the an API that needs less permissions than user_impersonation wrt management.azure.com.

Besides, I think the delegated permission user_impersonation is not large, when the user login the app and consent the permission, the app just calls the API as the user. The permissions are all from and decided by the user, not the app.

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