Integromat
  • Back to website
Articles in this section
  • Example of a Default route configured for a router
  • Send data to Integromat as JSON via an action in a Bubble workflow using the API Connector plugin
  • How to iterate columns of a Google Sheet worksheet
  • How to fully reset your Google connections
  • Calling Google APIs via the "HTTP > Make a OAuth 2.0 request" module
  • Calling Microsoft Graph REST API via the "HTTP > Make a OAuth 2.0 request" module
  • Create a Data Thing or a Bulk of Data Things on Bubble
  • Use JSON Generator to create a JSON Data Structure and make an HTTP request using an API Key (SendGrid example)
  • Extract an item and/or its value from an array of collections
  • Automate Invoicing with Invoice Ninja
See more
  1. Integromat Support
  2. Tutorials
  3. Tutorials

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

Michal Máša Michal Máša Updated March 05, 2021 00:18

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 URI https://login.microsoftonline.com/common/oauth2/v2.0/authorize
    Token URI https://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.Read, Files.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).
Was this article helpful?
4 out of 6 found this helpful
Menu
  • Features
  • Apps & Services
  • Templates
  • Pricing
  • What's new
  • Use cases
Information
  • Terms,  Privacy
  • FAQ
  • Help & Tutorials
  • Community
  • Affiliate Program
  • Blog
Developers
  • Developer Platform
Company
  • About the company
  • Join our team
  • Contact
Follow us
© 2020 Integromat by Celonis. All rights reserved. Integromat® is a registered trademark.
  • English