Exercise 4: Microsoft Graph
This exercise guides you through navigating Graph Explorer and running some basic queries before modifying code for a sample app to query the Microsoft Graph API using the .NET SDK.
Task 1: Using Graph Explorer
Follow these steps to get experience with Graph Explorer before you start making calls to the API:
- Navigate to https://developer.microsoft.com/graph/graph-explorer and sign in using the Sign in button at the top right of the screen, if you’re not already signed in.
Look at the top of the main part of the screen, where you have the method (defaults to GET), the API version (v1.0 at the time of writing this), and the URI. The URI is made up of the API endpoint (
https://graph.microsoft.com
), the API version (which updates if you change the version dropdown), and the resource you want to query (defaults to/me
, so will query the context of the logged-in user), and it will include any optional parameters you might specify. - Click...