Search code examples
microsoft-graph-api

How can I change default tenant in Microsoft Graph Explorer


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


Solution

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

    1. Create a Service account with appropriate accesses/groups in the Target Tenant.
      • Users -> New user
      • Roles User Administrator
      • Save
    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.