SharePoint Online Account
Overview
Use this account type to connect SharePoint Online Snaps that use the SharePoint Online User Account.

Prerequisites
- Valid Azure application with all the required API permissions. See Application Configuration in Azure Portal for OAuth2 Account to use in SharePoint Online.
- Valid client ID and client secret.
Account settings
| Field/Field set | Description |
|---|---|
Label*
String |
Specify a unique label for the account. Default value: N/A Example: SharePoint Online Account |
Client ID*
String |
Specify the Client ID associated with your Azure application. You can create the Client ID as advised by your application provider. Learn more about generating the Client ID. Default value: N/A Example: c3fb6e88-9ec0-468f-ba06-cc94525a8f1d |
Client secret*
String |
Specify the Client secret associated with your account. You can create the client secret as advised by your application provider. Learn more about generating the Client secret. Default value: N/A Example: <Value is encrypted> |
Access token*
String |
Specify the access token for the application. The retrieval of the access token is done when setting up the account for the endpoint. Default value: N/A Example: <Value is encrypted> |
Refresh token*
String |
Specify the refresh token for the application. The retrieval of the refresh token is done when setting up the account for the endpoint. Default value: N/A Example: <Value is encrypted> |
Access token expiration
Integer |
Specify the time until which the access token should be active. Default value: N/A Example: 1629004558 |
OAuth2 Endpoint*
String |
Specify the authorization endpoint to authorize the application in the following format:
Note: To obtain the Tenant Name from the Azure portal:
If you are using the URL ( Default value: https://login.microsoftonline.com/<tenantName>.onmicrosoft.com/oauth2/v2.0/authorize Example: https://login.microsoftonline.com/contoso.onmicrosoft.com/oauth2/v2.0/authorize |
OAuth2 Token*
String |
Specify the token endpoint to get the access token in the following format:
Default value: https://login.microsoftonline.com/<tenantName>.onmicrosoft.com/oauth2/v2.0/token Example: https://login.microsoftonline.com/contoso.onmicrosoft.com/oauth2/v2.0/token |
| Token endpoint config | Use this fieldset to provide custom properties for the OAuth2 token endpoint. Click the + or - icons to respectively add or remove configuration rows. |
Token endpoint parameter
String |
Define optional token endpoint parameter. Default value: N/A Example: response_type |
Token endpoint parameter value
String |
Define optional token endpoint parameter value. Default value: N/A Example: code |
| Auth endpoint config | Use this fieldset to provide custom properties for the OAuth2 auth endpoint. Click the + or - icons to respectively add or remove configuration rows. |
Auth endpoint parameter
String |
Define optional authentication parameters. Default value: N/A Example: scope |
Auth endpoint value
String |
Define optional authentication parameter values. Default value: N/A Example: offline_access Sites.ReadWrite.All |
Auto-refresh token
Checkbox |
Select this checkbox to automatically refresh the token. Otherwise, it might expire and will not be automatically refreshed. Learn more about how the SnapLogic Platform handles token refresh failures. Default value: Deselected |
Troubleshooting
| Error | Cause | Resolution |
|---|---|---|
| Authentication failed. | You have entered an incorrect client-id or client-secret. | Check your client-id and client-secret. |