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 i.e. Microsoft Graph?
An example, where this list of tenants is used
- Microsoft Access Panel
https://account.activedirectory.windowsazure.com/r#/profile/organizations
POST https://account.activedirectory.windowsazure.com/responsive/multidirectoryinfo - Azure DevOps profile
https://aex.dev.azure.com/me - Azure Portal
POST https://portal.azure.com/api/directories/List