How To Setup MS Graph API Authentication For Power Automate

power automate configure graph api authentication

The Microsoft Graph API is very powerful and can be valuable within in your Power Automate flows. But before you can use the MS Graph API in your flows, you need to prepare the authentication for the MS Graph API.

This guide shows you step by step how to setup the authentication for the usage of the Graph API in Power Automate.

Let’s dive into Microsoft Graph API Authentication for our flows!

Overview: Configuration of MS Graph API for Power Automate

There are 4 steps you need to finish, before the Graph API can be used:

  1. Register an application in the MS Azure Portal
  2. Create a client secret in the MS Azure Portal for your app
  3. Assign and grant API permissions to your app in the MS Azure Portal
  4. Configure your Power Automate flow to authenticate to MS Graph API

Step by step: How To Setup MS Graph API Authentication For Power Automate

Power Automate Flow HTTP Action Authentication Setup

Learn step by step how to setup the authentication needed to use the Microsoft Graph API within a Power Automate flow.

  1. Visit the Microsoft Azure Portal and add a new ‘App registration’

    Microsoft Azure Portal New App Registration

    MS Azure Portal – Add App registration

  2. Provide a name, select the Single tenant option, click Register

    Microsoft Azure Portal Register an application

    Azure Portal – Register an application

  3. Copy Application and Directory ID to text editor and click on ‘Add a certificate or secret’

    Microsoft Azure Portal Application Ids

    Azure Portal – New Application

  4. Click on ‘New client secret’

    Microsoft Azure Portal Application New Client Secret

    Azure Portal – App client secrets

  5. Provides a descriptive name and how long the secret should be valid, click ‘Add’

    Microsoft Azure Portal Application Add a Client Secret

    Azure Portal – Add a client secret

  6. Copy ‘Value’ and ‘Secret ID’ to a text editor

    Microsoft Azure Portal Application New Client Secret Copy Values

    Azure Portal – Client secret

  7. Click on ‘API permissions’

    Microsoft Azure Portal Application API permissons

    Azure Portal – API permissions

  8. Click ‘Add a permission’

    Microsoft Azure Portal Application API permissons add a permission

    Azure Portal – Add a permission

  9. Click on ‘Microsoft Graph’

    Microsoft Azure Portal Request API permissions

    Azure Portal – Request API permissions

  10. Click on ‘Application permissions’

    Microsoft Azure Portal Request API permissions application permissions

    Azure Portal – Request API permissions

  11. Add the permissions you need (example: User.Invite.All) and click ‘Add permissions’

    Microsoft Azure Portal Request API permissions users Invite all

    Azure Portal – Request API permissions – Add permissions

  12. Grant admin consent for your permissions or ask your admin to do it

    Microsoft Azure Portal Application API permissons Grant admin consent

    Azure Portal – Request API permissions – Grant admin consent

  13. Finally you have everything to setup your Power Automate flow

    Power Automate Flow HTTP Action Authentication Setup

    Power Automate – HTTP Action – MS Graph API Configuration (Tenant & Client ID of Step 3 and Secret ID of Step 6)

Leave a Comment

Your email address will not be published. Required fields are marked *