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 Integromat:

  1. In Integromat, create a new scenario
  2. Insert the HTTP > Make a OAuth 2.0 request module.
  3. Open the module's configuration and click on the "Add" button next to the Connection field to create a new connection.
  4. Fill the connection setup as follows:
    Authorize URIhttps://login.microsoftonline.com/common/oauth2/v2.0/authorize
    Token URIhttps://login.microsoftonline.com/common/oauth2/v2.0/token
  5. Open the Microsoft Application Registration Portal in a new tab/window and log in with your Microsoft account.
  6. Click on the "New registration" button or select existing MS Azure app.
  7. Enter a name (e.g. My Integromat App).
  8. Enter https://www.integromat.com/oauth/cb/oauth2 in the Redirect URLs field.mceclip0.png
  9. Click "Register" button.
  10. Copy the Application Id under the "Properties" heading, switch to Integromat and paste it into the Client ID field.
  11. Switch back to the Application Registration Portal.
  12. Under the "Certificates & Secrets" heading, click on the "New Client Secret" button.mceclip1.pngmceclip2.png
  13. Copy the generated toke Value, switch to Integromat, and paste it into the Client Secret field.
  14. Switch back to the Application Registration Portal.
  15. On the "Overview" section click button "API Permissions"  OR select API permission section, click on the "Add a Permission" button, mceclip4.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 mceclip5.pngThen add additional needed in your integrations for example: User.ReadFiles.ReadWrite.All.
  17. Click on the "Add Permissions" button at the bottom of the page.
  18. Switch to Integromat.
  19. Add the scopes you added in the previous step into the Scope field.mceclip9.png
  20. Tick the Show advanced settings option.
  21. Set the Scope separator to SPACE.
  22. Add additional Authorize parameters as shown below:mceclip12.png
  23. Add the same scopes space separated to Refresh Token parameters. Create a new scope parameter for it:
  24. mceclip10.png
  25. The connection setup should look like this:
    mceclip13.pngmceclip14.png
  26. Click on the "Continue" button.
  27. A window will pop up. Review the permissions and click on the "Accept" button:
    mceclip2.png
  28. The connection should be now successfully created.
  29. You can try to perform a test GET call to https://graph.microsoft.com/v1.0/me
  30. Configure the module to make an API call (refer to Microsoft Graph REST API v1.0 reference for further details).

Popular use cases from our blog

slack-automation-illustration

Slack Automation: 20 Free Templates to Get You Inspired

google-sheets-automation-alt

Google Sheets Automation for Ecommerce: 23 Free Templates

tweet-automation-illustration

How to Get Someone's Tweets Before Anyone Else Does

onboarding-automation-with-integromat-alt

How to Automate Employee Onboarding in Minutes with Integromat

shopify-order-to-manufacturer-illustration-alt

How to Auto Send Shopify Orders to Dropshipping Suppliers [Guide]

strava-exercise-to-google-sheets-illustration

Like a Champ: How to Save Strava Activities to Google Sheets

Didn’t find what you were looking for?

Ticket

Create a ticket

Contact our world-class support team and tell us what’s happening.

Create a ticket
Expert

Find an expert

We feature a network of 450+ certified partners across the globe who are ready to help

Find an expert

Automate any workflow in your business

Sign up for a free account today. No credit card required, no time limits on free plan.