Skip to content

NTNU-IT-M365/ms-graph-snippets

Repository files navigation

Microsoft Graph API Snippets

Some useful code snippets for doing common stuff with Microsoft Graph API.

Authentication

  • Authenticate a managed identity in a runbook or Azure Function: Code

Permissions

  • Assign Graph API permissions to a managed identity: Guide / Code
  • List the Graph API permissions that's assigned to managed identity: Code
  • Give a managed identity permission on a single SharePoint Site using Sites.Selected: Guide / Code
  • Give the Exchange.ManageAsApp permission to a managed identity: Code