SharePoint Online Account

In this article

Overview

Use this account type to connect Sharepoint online Snaps that use Sharepoint online account.

Prerequisites

  • Create an application :
  • Please note created client-id and generated client-secret, this will be required while configuring the account.
  • Provide required API permissions (delegated) to the created application, please refer permissions for more details.

Limitations and Known Issues

  • N/A

Account Settings


ParameterData TypeDescriptionDefault ValueExample 

Label

String

Unique name for the account.

Sharepoint online OAuth2 Dev

Sharepoint online OAuth2 Dev

Client ID

String

Required. The client ID can be created by following the steps of the application provider. An example and its meaning can be found here.

N/A

N/A

Client secret

String

Required. The client secret can be created by following the steps of the application provider. An example and its meaning can be found here.

N/A

N/A

Access token

required, but auto-generated

StringRequired. Access tokens are the thing that applications use to make API requests on behalf of a user. The access token represents the authorization of a specific application to access specific parts of a user’s dataN/AN/A

Refresh token

StringRequired. The refresh token for the application. The retrieval of the refresh token is done when setting up the account for the endpoint. There, the OAuth2 flow will be executed and the resulting refresh token can be stored in this property. If the refresh token is stored, then the access token can be refreshed automatically before it expires.

N/AN/A

Access token expiration

intThe access token expiration value.N/AN/A

Header authenticated

Boolean

Enable this if endpoint uses bearer header authentication.

disabled

OAuth2 Endpoint

String

Required. Authorization endpoint to authorize the application.  

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

OAuth2 Token

String

Required. Token endpoint to get the access token.

https://login.microsoftonline.com/{tenantName}.onmicrosoft.com/oauth2/v2.0/tokenN/A

Token endpoint config


Provides custom properties for the OAuth2 token endpoint.



Token endpoint parameter

StringDefines an optional token endpoint parameter value.N/Aresponse_type

Token endpoint parameter value

String

Provides custom properties for the OAuth2 auth endpoint.

N/Acode
Auth endpoint config


Provides custom properties for the OAuth2 auth endpoint.



Auth endpoint parameter

String

Defines an optional authentication parameter.N/Ascope

Auth endpoint value

StringDefines an optional authentication parameter value.N/A
offline_access Sites.ReadWrite.All

Auto-refresh token

Boolean

Refreshes the token automatically using the refresh token if the property is enabled. Otherwise, the token might expire and will not be automatically refreshed.DisabledN/A

Troubleshooting


ErrorReasonResolution
Authentication failed.You have entered an incorrect client-id or client-secret.Please check your client-id and client-secret



Have feedback? Email helpdesk@rojoconsultancy.com © Rojo Consultancy