Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 427
Allan Xu Avatar asked Nov 16 '18 16:11

Allan Xu


People also ask

How do you change tenants in graph explorer?

If you want to sign into your own tenant in Graph explorer, use tenant query string parameter. 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).

What is Microsoft Graph default?

For Microsoft Graph, the value of scope is therefore https://graph.microsoft.com/.default . This value informs the Microsoft identity platform endpoint to include in the access token all the app-level permissions the admin has consented to. client_secret. Required.

Where are Microsoft Graph permissions set?

Go to the app's API permissions page. Select Add a permission and then choose Microsoft Graph in the flyout. Select Delegated permissions. Use the search box to find and select the required permissions.

What is tenant ID in MS graph?

Directory (tenant) IdThe ID of the Microsoft Azure Active Directory to retrieve information from.


1 Answers

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.

like image 63
Abhishek Agrawal Avatar answered Dec 31 '22 19:12

Abhishek Agrawal