Reputation: 9358
I am working with Graph Explorer to experiment with permissions:
https://developer.microsoft.com/en-us/graph/graph-explorer
When I authenticate to Graph Explorer, it always sends queries to the AD tenant that my identity is created in.
However, the identity I am using can query multiple Azure AD tenants.
How can I change default tenant in Graph Explorer
Upvotes: 27
Views: 19250
Reputation: 2793
This answer needs to be updated. Graph Explorer does "not" currently allow you to change tenant from what I have currently tested, using the methods mentioned.
Graph explorer is only working for the tenant your user is defaulted to.
In the past I am pretty sure as long as I was an admin/owner on the tenant I could switch. This no longer seems to be the cases. Tenant is not switching when I specifically specify "tenant=" and use both the primary domain and the original .onmicrosoft domain.
Upvotes: 1
Reputation: 31686
Create a service account in the tenant you want to access.
Users
-> New user
User Administrator
Get
the Get My Profile
to verify the service account logged in is found.Upvotes: -1
Reputation: 2287
If you want to sign into your own tenant in Graph explorer, use tenant query string parameter.
https://developer.microsoft.com/en-us/graph/graph-explorer?tenant=contoso.onmicrosoft.com
A simple url to go to Graph explorer is https://aka.ms/ge, when you land on the destination, just add tenant query string parameter (domain name or tenantId, both work).
If you are already signed into a tenant, you will have to logout from there. currently automatic switch of tenant is not supported.
Upvotes: 37
Reputation: 33114
This is fundamentally how Microsoft Graph works, it retrieves data from the tenant you (or your app) authenticated against. It cannot query across multiple tenants.
Upvotes: -4