Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this article

...

Snaps in Exchange Online Snap Pack require an OAuth2 account to access the resources in Azure. For the OAuth2 account to authorize successfully, ensure to create and configure an application corresponding to the account as displayed in the workflow.

...

  1. On the left navigation panel, navigate to Manage,select API permissions > Add a permission.

  2. On the Request API permissions window, select Microsoft Graph > Delegated permissions and Application permissions for the OAuth2 Account.

  3. Select the permissions from Files, Users, and Teams. Choose the minimum and mandatory API permissions listed under Scopes and Permissions.

  4. Click Add Permissions. View all the permissions added under Configured permissions.

  5. Click Grant admin consent confirmation and select Yes

  6. Click Overview, select Add a Redirect URI and get redirected to the Platform configurations page. 

    1. Under Platform configurations, click Add a platform.

    2. Select Web and specify a valid Redirect URI either of the following Redirect URIs based on the region your server is located:
      https://emea.snaplogic.com/api/1/rest/admin/oauth2callback/exchangeonline
      https://elastic.snaplogic.com/api/1/rest/admin/oauth2callback/exchangeonline and click 

    3. Cick Configure. A popup message displays which indicate that the application is successfully updated.

  7. On the Platform configurations page, click Save.

...

Common Errors

Reason

Response

Error 401

Token is invalid

Provide a valid token and reauthorize the account.

The redirect URI specified does not match the reply URI configured for the application.

Incorrect redirect URI specified by user.

Add either of the following redirect_uri:

  • https://elastic.snaplogic.com/api/1/rest/admin/oauth2callback/exchangeonline

  • https://emea.snaplogic.com/api/1/rest/admin/oauth2callback/exchangeonline

URL error while invoking the operation

Ensure the tenant domain name is correct

Ensure that Directory (tenant) ID noted from the application is in the correct format.

Example: 2060aafa-89d9-423d-9514-eac46338ec05

...