...
On the left navigation panel, navigate to Manage,select API permissions > Add a permission.
On the Request API permissions window, select Microsoft Graph > Application permissions for the Application Account.
Select the permissions from Files, Users, and Teams. Choose the minimum API permissions listed under Scopes and Permissions Required for SharePoint Online.
Click Add Permissions. View all the permissions added under Configured permissions.
Click Grant admin consent confirmation and select Yes.
Click Overview and select Add a Redirect URI. You will be redirected to the Platform configurations page.
Under Platform configurations, click Add a platform.
Select Web and specify either of the following Redirect URIs based on the region your server is located:
https://elastic.snaplogic.com/api/1/rest/admin/oauth2callback/sharepointonline
https://emea.snaplogic.com/api/1/rest/admin/oauth2callback/sharepointonline
Click Configure. A popup message displays indicating that the application is successfully updated.
On the Platform configurations page, click Save.
...
On the application page, under Essentials, note the Application (client) ID and Directory (tenant) ID needed for the Snap account.
In the left navigation panel, select Manage > Certificates & secrets.
On the Certificates & secrets page, click + New client secret.
In the Add a client secret window, enter the Description, select an option for Expires from the dropdown list, and click Add.
The Client secret value and ID are generated. This value and the ID are required to configure the OAuth2 account.
...
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_uriuris:
|
URL error when 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 |
Error 500
| Client secret has expired. | Generate new Client secret. |
...