SharePoint Online Connector
Connector Configuration
The SharePoint Online connector synchronizes files and documents stored in the libraries of one or more SharePoint sites to Wikit Semantics. Access is granted through an application registered in Azure AD, which is given a targeted permission (Sites.Selected) on the SharePoint site(s) to synchronize.
| Field name | Format / Type | Required | Comment |
|---|---|---|---|
| Application (client) ID | Identifier | ✅ | ID of the Azure AD application registered for Wikit Connect, available on the "Overview" page of the app registration |
| Directory (tenant) ID | Identifier | ✅ | Azure AD tenant ID, available on the same "Overview" page |
| Client secret | Password / Token | ✅ | Value of the client secret generated in "Certificates & secrets" (not its ID) |
| Site ID | Identifier | ✅ | ID of the SharePoint site to synchronize, retrieved via the _api/site/id API |
| Paths to include | List of texts | ➖ | Restricts synchronization to the listed folders. Expected format: Library-name/Folder-name |
| Paths to exclude | List of texts | ➖ | Excludes the listed folders from synchronization. Expected format: Library-name/Folder-name |
| Retrieve system folders | Yes / No | ➖ | Enable to retrieve folders such as attachments. By default, all system-type folders are retrieved: you will need to exclude paths to avoid retrieving unnecessary files |
💡 Fields marked ✅ are required for the connector to work.
Setup
An application in Azure is required, and here's how to proceed:
1. Register an application in Azure
- connect with an admin account to https://x@x@x.azure.com
- in the search bar, type: app registration
- you will arrive at a page like the one below:

- click on New registration
- enter a name for your application, for example: Wikit-sync-sharepoint then validate

2. Note the application ID and the directory ID
You can already note the information on the "Overview" page which will need to be transmitted to your Wikit contact:
- Application (client) ID ✏️
- Directory (tenant) ID ✏️

3. Create a client secret
We will create a secret for your application, which will need to be transmitted to your Wikit contact.
To do this, click on Manage then on "Certificates & secrets", then on "New client secret", you can add a description and manage the expiration date.
⚠︎ Be sure to note the secret's end date, once this token expires your SharePoint synchronization will no longer work; you will need to remember to share the new one with the Wikit team before its expiration.
⚠︎ Be sure to transmit the secret's value and not the ID

4. Authorize the application to access SharePoint (Sites.Selected)
We will now authorize the application to retrieve information from your SharePoint. To do this, we will go to "API permissions" and click on "Add a permission" then "Application permissions", search for site and select "Sites.Selected", validate by clicking on "Add permissions", finally, you can "Grant admin consent" by clicking on the button of the same name.

5. Target the site to share with Wikit via the Graph Explorer
This authorization requires additional configuration to target the site to be shared with Wikit. To do this, you will need to make a request in Microsoft's Graph Explorer.
Direct link to the query ⇒ https://developer.microsoft.com/en-us/graph/graph-explorer
You will need to grant additional permission to your account by clicking on "Consent to permissions".
⚠️ The account used must have access to the targeted SharePoint. Microsoft offers several Sites.Selected permissions. You must be very careful to ensure it is the permission in Microsoft Graph and not SharePoint!

Search for sites.FullControl.All and click on Consent.

Once you have the necessary permissions, you can change the information: siteId in the URL, id and displayName in the request body.

⚠️ Remember to change {siteId} with your siteId.
⚠️ Replace id de votre application (your application's ID) with your application's ID in the box.
Method: POST
URL: "https://graph.microsoft.com/v1.0/sites/{siteId}/permissions"
Body: {
"roles": [
"read"
],
"grantedToIdentities": [
{
"application": {
"id": "your application's id",
"displayName": "Wikit API"
}
}
]
}You can remove the sites.FullControl.All permission from your account.
6. Retrieve the SharePoint site ID
To retrieve the site ID:
https://wikitai.sharepoint.com/sites/{site-slug}/_api/site/idThe site slug is available in the SharePoint URL when you are on it.
Here is an example:
https://wikitai.sharepoint.com/sites/{site-slug}/...7. Send the information to the Wikit team
Once all these steps are completed, you can communicate the following information to the Wikit team:
- the application ID
- the directory (tenant) ID
- the secret
- the site ID
8. Configure the paths to include/exclude in Wikit Connect
For field configuration: Paths to include, Paths to exclude, use the format Library-name/Folder-name.

How the Connector Works
- System folders: to retrieve folders like attachments, you need to enable the option "retrieve system folders". ⚠️ Be careful, by default, all system-type folders are retrieved. You will need to exclude paths to avoid retrieving unnecessary files.
- Multi-site: for multi-site, all sub-sites are retrieved.