How can I change default tenant in Microsoft Graph Explorer

Viewed 5723

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

3 Answers

Create a service account in the tenant you want to access.

  1. Create a Service account with appropriate accesses/groups in the Target Tenent.
  2. In a clean/Private Window bring up https://aka.ms/ge the Graph Explorer. Note that the test tenant will be engaged.
  3. Select the user button and initiate a login with the credentials setup in step 1.
  4. Initiate the first Get the Get My Profile to verify the service account logged in is found.

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.

Related