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

Modified on Wed, 29 May at 2:31 PM

Calling the Microsoft Graph REST API from Make's HTTP > Make an OAuth 2.0 request requires you to:

Prerequisites

  • Make account

  • Admin access to the Azure portal

Required information

Both the Azure portal and Make require information to create a connection:

Values entered in Make created or found in the Azure portal:

Value required in Make

Value as named in Azure portal UI

Client ID

Application ID

Client secret

Secret ID Value

Authorize URI

OAuth 2.0 authorization endpoint (v2)

Token URI

OAuth 2.0 token endpoint (v2)

Values entered in the Azure portal related to Make:

Value required in the Azure portal

Value to enter

Redirect URI (Web)

https://www.integromat.com/oauth/cb/oauth2

Create an application in the Azure portal

To create your OAuth connection for Microsoft, complete these steps in the Azure portal:

  1. Register your web application.

  2. Create a client secret.

  3. Grant the required permissions.

Find your connection URIs in the Azure portal

Make's HTTP > Make an OAuth 2.0 request requires URIs to authorize your API calls and obtain a token. You can find these URIs in the Azure portal:

  1. Click App registrations.

  2. Select the app you created in the above procedure and open its Overview page.

  3. Click Endpoints.

  4. In the pop-up, use the Copy to clipboard button to copy and save or enter the following in the module configuration on Make:

    Value required in Make

    Value as named in Azure portal UI

    Authorize URI

    OAuth 2.0 authorization endpoint (v2)

    Token URI

    OAuth 2.0 token endpoint (v2)

Configure the HTTP > Make an OAuth 2.0 request module

  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. Click Show advanced settings.

  5. Fill the connection setup as follows:

    Flow type

    Select Authorization Code.

    Authorize URI

    Enter the OAuth 2.0 authorization endpoint (v2) URI you found previously.

    Token URI

    https://login.microsoftonline.com/common/oauth2/v2.0/token

    Scope

    Click + to add each permission you granted previously.

    Check that:

    • All necessary permissions are listed.

    • Each permission is a separate item.

    Scope separator

    Select SPACE.

    Client ID

    Enter the Application ID from the app you created in the Azure portal.

    Client Secret

    Enter the client secret you created previously.

    Authorize parameters

    Enter the following keys and values:

    Key

    response_mode

    Value

    query

    Key

    prompt

    Value

    consent

    Refresh token parameters

    Enter the following key and value

    Key

    scope

    Value

    Enter all scopes you have in the Scopes field separated spaces.

    Example:

    offline_access opened profile User.Read

    Token placement

    Select In the header.

    Header token name

    Select Bearer.

  6. Click Continue.

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

The connection is successfully created. You can perform your API call.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article