Calling Microsoft Graph REST API via the "HTTP Make a OAuth 2.0 request" module

This is a step-by-step guide on calling the Microsoft Graph REST API from Make:

  1. In Make dashboard, go to Create a new scenario.

  2. Insert the HTTP > Make a OAuth 2.0 request module.

  3. Open the module's configuration and click Add next to the Connection field to create a new connection.

  4. Fill the connection setup as follows:

  5. Open the Microsoft Application Registration Portal in a new tab/window and log in with your Microsoft account.

  6. Click New registration or select existing MS Azure app.

  7. Enter a name (e.g. My Make app).

  8. Enter https://www.integromat.com/oauth/cb/oauth2 in the Redirect URLs field.

    Calling-Microsoft-Graph-REST-API-1.png

    OAuth redirect URI domain

    Notice that the redirect URI starts with https://www.integromat.com instead of https://www.make.com. This is currently a known issue in Make.

    Make was formerly called Integromat, which means you can trust this URL as much as any Make URL.

    Please make sure all your OAuth redirect URIs point to https://www.integromat.com/oauth/cb/oauth2

  9. Click Register.

  10. In Properties, copy the Application Id. Switch to Make and paste it into the Client ID field.

  11. Switch back to the Application Registration Portal.

  12. In Certificates & Secrets, click New Client Secret.

    Calling-Microsoft-Graph-REST-API-2.png
    Calling-Microsoft-Graph-REST-API-3.png
  13. Copy the generated token Value. Switch to Make, and paste it into the Client Secret field.

  14. Switch back to the Application Registration Portal.

  15. In Overview section click API Permissions  OR select API permission section. Click Add a Permission.

    Calling-Microsoft-Graph-REST-API-4.png
  16. Select Delegated permissions and enable the required permissions (refer to the Microsoft Graph permissions reference for further details). Start with Offline_access and openid scopes they are required.

    Calling-Microsoft-Graph-REST-API-5.png

    Then add additional needed in your integrations for example:

    User.Read, Files.ReadWrite.All.

  17. Click Add Permissions at the bottom of the page.

  18. Switch to Make.

  19. Add the scopes you added in the previous step into the Scope field.

    Calling-Microsoft-Graph-REST-API-6.png
  20. Tick Show advanced settings.

  21. Set Scope separator to SPACE.

  22. Add additional Authorize parameters as shown below:

    Calling-Microsoft-Graph-REST-API-7.png
  23. Add the same scopes space separated to Refresh Token parameters. Create a new scope parameter for it:

    Calling-Microsoft-Graph-REST-API-8.png
  24. The connection setup should look like this:

    Calling-Microsoft-Graph-REST-API-9.png
    Calling-Microsoft-Graph-REST-API-10.png
  25. Click Continue.

  26. A window pops up. Review the permissions and click Accept.

    Calling-Microsoft-Graph-REST-API-11.png
  27. The connection is successfully created.

  28. You can try to perform a test GET call to https://graph.microsoft.com/v1.0/me.

  29. Configure the module to make an API call (see Microsoft Graph REST API v1.0 reference for further details).