Skip to main content

Use Graph Explorer to connect to Microsoft Graph APIs without writing any code


What is Graph Explorer?

Microsoft Graph Explorer lets you connect to Graph APIs using your browser. You can try Graph API functions without using any code.

Connect to Graph Explorer

Microsoft Graph Explorer
https://developer.microsoft.com/en-us/graph/graph-explorer

Sign in and grant permissions

Sign into Microsoft Graph Explorer

Grant MS Graph explorer permissions

When you connect to Graph Explorer, an Enterprise application is created in Entra ID

MS Graph Explorer Entra ID Enterprise app

Get a user with Graph Explorer

HTTP GET
https://graph.microsoft.com/v1.0/users/user@domain.com

Grant Graph Explorer permissions

After you have entered the Graph URL, you can check the permissions required under the Modify permissions tab

 Graph Explorer modify permissions

Grant Graph Explorer User.ReadBasic.All permissions

Modify permissions - User.ReadBasic.All - Consent

Modify permissions user.readbasic.all Consent

Consent on behalf of your organization to grant Graph Explorer permissions

grant graph explorer permissions user read

Permissions have been granted

permissions granted sucessfully

Run the Graph query

Request Body - Run query
The status code 200 shows the query ran successfully

Graph explorer run query

Get a list of groups using Graph Explorer

Search for groups and expand the list
Select list all groups in my organization

graph explorer search for groups

Grant Graph Explorer permissions

Click Modify permissions
Group.Read.All - Consent

modify permissions group read all consent

HTTP GET
https://graph.microsoft.com/v1.0/groups

Request body - Run query

Query ran successfully

graph explorer query ran successfully

 


 

References:

Microsoft Graph REST API - List groups
https://learn.microsoft.com/en-us/graph/api/user-get

Microsoft Graph REST API - Get a user
https://learn.microsoft.com/en-us/graph/api/group-list

1000 Characters left



Filter articles by tag