The SharePoint Online Connector can be configured using the Rest API. It requires the following entities to be created:
Bellow are the examples of how to create the Credentials, the Connection and the Seed. For the Connector please check this page.
Panel | ||
---|---|---|
| ||
|
Field | Optional | Default | Multiple | Notes | Example |
---|---|---|---|---|---|
type | No | - | No | The value must be "sharepoint-online". | "sharepoint-online" |
description | No | - | No | "SPO_Prod_Credentials" | |
properties.useAzureAuthentication | No | - | No | Whether credentials are Azure AD Application (true) credentials or User account credentials (false). | true |
properties.tenantDomain | No | - | No | Only required if useAzureAuthentication is true. Tenant domain the Azure AD Application is part of. | "contoso.onmicrosoft.com" |
properties.clientId | No | - | No | Only required if useAzureAuthentication is true. Azure AD Application ID. | "1a1a-2b2b2-2cc22-aaa456" |
properties.certificatePath | No | - | No | Only required if useAzureAuthentication is true. Path to the certificate file. This path has to be accesible by all worker nodes that will use these credentials. | "${dist.data.dir}/${app.name}/certificates/certificate.cer" |
properties.privateKeyPath | No | - | No | Only required if useAzureAuthentication is true. Path to the certificate private key file. This path has to be accesible by all worker nodes that will use these credentials. | "${dist.data.dir}/${app.name}/keys/key.key" |
properties.username | No | - | No | Only required if useAzureAuthentication is false. Username for the crawl account when using user/password credentials. | "[email protected]" |
properties.password | No | - | No | Only required if useAzureAuthentication is false. Password for the crawl account when using user/password credentials. This field can also be sent as an encrypted string (encryptedÑ | "password" |
Saga_json | ||
---|---|---|
| ||
{ "type": "sharepoint-online", "description": "SPO_Cred", "properties": { "useAzureAuthentication": true, "tenantDomain": "cao365.onmicrosoft.com", "clientId": "12345-abcd", "certificatePath": "${dist.data.dir}/${app.name}/certificates/certificate.cer", "privateKeyPath": "${dist.data.dir}/${app.name}/keys/key.key" } } |