SharePoint Online Account

Overview

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



Prerequisites

Account settings

Note: Learn about the common controls in the Snap settings dialog.
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:

https://login.microsoftonline.com/<tenantName>.onmicrosoft.com/oauth2/v2.0/authorize

Note: To obtain the Tenant Name from the Azure portal:
  1. Log in to the Azure Portal.
  2. Navigate to Azure Entra ID.
  3. Under the Overview section, the Name is the <tenantName>, which must be used as <tenantName>.onmicrosoft.com in the OAuth2 Endpoint URL.

If you are using the URL (https://login.microsoftonline.com/<tenantid>/oauth2/v2.0/authorize) to configure the OAuth2 Endpoint in your SharePoint Online Account, ensure that you replace <tenantID> with <tenantName>.onmicrosoft.com.

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:

https://login.microsoftonline.com/<tenantName>.onmicrosoft.com/oauth2/v2.0/token

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

Note: Click Validate after entering the required details to ensure that all fields have been filled accurately. Click Apply to save the settings.

Troubleshooting

Error Cause Resolution
Authentication failed. You have entered an incorrect client-id or client-secret. Check your client-id and client-secret.