I’m back with part three in my series on Microsoft Graph – this week I’ll show you how to get started with Graph Explorer…

First, what is Graph Explorer?

Microsoft Graph Explorer is a tool that allows you to interact with the Graph APIs such as Intune and Security, but also provides a base for learning to develop applications and scripts using the Graph API.  

Using Graph Explorer allows you to: –

Developers can use Graph Explorer to test how Graph APIs work, to see what data can be accessed, what data is retrieved from a particular command and test how the POST, PATCH, GET and DELETE calls work (more on this later).

The Graph Explorer dashboard is shown in the following diagram:

Using some of the sample queries within the menu on the left-hand side, we can access information about users as follows: –

In order to quickly access information within Explorer, we can use the Service Endpoint URL to look for the relevant area of information. For example, if I use the first part of the default URL https://graph.microsoft.com/v1.0/me/ the available options will then present themselves as follows.

Any of these options can be selected to obtain the information that is required about the user.

The first screenshot shows the profile of the user who is signed in:

The second screenshot display information about email messages, calendar entries and Microsoft Teams chat (if integrated with Outlook):

The last screenshot displays information from Microsoft Intune regarding the Device Configuration profile that has been configured. Note that the output shows the status of each setting within the configuration profile. In this case, it is an iOS profile. This type of output could be used to migrate settings to another Azure tenant or to modify the policy settings using Graph API

Accessing Intune Graph API using Powershell

An alternative method of accessing the Intune Graph API (or any other element of the Graph API), is by using Powershell.

Using Powershell can help to develop scripts that can be used by an application to retrieve and manipulate data automatically.

To connect to the Microsoft Graph via Powershell : –

So there you have it, hopefully these tutorials have been useful to you and you can start working with Microsoft Graph – if you miss the first two blogs, check out part one and part two.

If you have any questions, feel free to reach out at info@poweronplatforms.com and the team will pass any questions along to me. You can also tweet us @PowerON_UK if you prefer!

Leave a Reply