Application Configuration in Azure Portal for OAuth2 Account to use in Exchange

The Snaps in this Snap Pack use an OAuth2 account to access Microsoft applications. For the OAuth2 account to function without any issue, ensure to (create and) configure an application corresponding to the account. This configuration allows you to create and locate Client ID, Tenant ID, Endpoints, and Retrieve URIs.

  1. Log in to the Microsoft Azure Portal.

  2. Create a new application: Portal Home > Azure Services > Azure Active Directory > App Registrations > New Registration.


    1. Application ID is the client ID, and Directory ID is the tenant ID. Both are required when configuring an account. You need to save this information as you might need these details to create accounts.
    2. Click Add a Redirect URI to add a URL that acts as a redirect URL.

      1. Click Add a Platform to configure a platform.


      2. Click Web, it redirects you to a page where you need to Configure Web page.


      3. Enter the redirect URL in the Redirect URIs field, which will vary depending on the Snaplogic instance, under Redirect URls and Click Configure and you will get back to Platform Configuration screen.


    3. Click Endpoints to view the Authorization Endpoint and Token Endpoint.


    4. Click Certificates & secrets to view the client secrets that can be used for the new account.

      You need to save the generated client secret value and store it safelly as it cannot be retrieved later.



    5. Click API permissions to grant permissions to the application and click Add a permission. You must choose all the required API permissions for Exchange Online listed:

      • User.Read.All 

      • Mail.ReadWrite   

      • MailboxSettings.ReadWrite 

      • Calendars.ReadWrite  

      • Contacts.ReadWrite


    6. Select the Microsoft Graph API to request API permissions for the application.


    7. Select Delegated permissions, choose this option if you want to configure Exchange Online OAuth2 User Account, and select required permissions. Click Add Permissions.


    8. Select Application permissions, choose this option if you want to configure Exchange Online OAuth2 Application Account, and select required permissions. Click Add Permissions.


  3. Click Grant admin consent for SnapLogic in the Configured permissions page to allow token generation in your Snap Pack without specifying the client credentials each time.


See Also