Edit

Share via


Microsoft Graph tutorials

Microsoft Graph tutorials are step-by-step training exercises that guide you through creating a basic application that accesses data via Microsoft Graph. They are designed to be completed within 30 minutes.

Delegated (user) authentication

In the delegated authentication tutorials, you create a basic command-line application that has the following features:

  • Enables user authentication to get access on behalf of a user
  • Accesses the user's profile
  • Lists the user's mailbox
  • Sends an email from the user's mailbox

If you prefer to download a completed project, you can do so from one of the following locations:

  • The project's corresponding GitHub repository. Instructions for registering an application and configuring the sample are located in each repository.
  • A Microsoft Graph quick start. A quick start automates registering an application for you and downloads the completed project already configured for user authentication. A quick start is available for all tutorials except Power Automate.
TutorialGitHub repository
.NETmicrosoftgraph/msgraph-training-dotnet-core
Gomicrosoftgraph/msgraph-training-go
Javamicrosoftgraph/msgraph-training-java
JavaScriptmicrosoftgraph/msgraph-training-javascript
PHPmicrosoftgraph/msgraph-training-php
Power Automatemicrosoftgraph/msgraph-training-powerautomate
PowerShellmicrosoftgraph/msgraph-training-powershell
Pythonmicrosoftgraph/msgraph-training-python
TypeScriptmicrosoftgraph/msgraph-training-typescript

App-only authentication

In the app-only authentication tutorials, you create a basic command-line application that has the following features:

If you prefer to download a completed project, you can do so from the project's corresponding GitHub repository. Instructions for registering an application and configuring the sample are located in each repository.

TutorialGitHub repository
.NETmicrosoftgraph/msgraph-training-dotnet-core
Gomicrosoftgraph/msgraph-training-go
Javamicrosoftgraph/msgraph-training-java
JavaScriptmicrosoftgraph/msgraph-training-javascript
PHPmicrosoftgraph/msgraph-training-php
PowerShellmicrosoftgraph/msgraph-training-powershell
Pythonmicrosoftgraph/msgraph-training-python
TypeScriptmicrosoftgraph/msgraph-training-typescript

Next steps

After you complete a tutorial, you can learn more on Microsoft Learn or explore our samples.

Microsoft Learn

For a deeper dive into Microsoft Graph, explore our Microsoft Graph learning paths:

Samples

If the tutorials aren't quite what you need, our Microsoft Graph samples cover more scenarios and platforms, such as web apps and mobile apps.