Who: the knowledge base’s creator and Admins · Where: Knowledge bases › your knowledge base › Add Source › SharePoint · Works on: Enterprise and SaaS
What to ask your IT department for first
Neural Factory reads SharePoint through an app registration in Microsoft Entra ID, which your Microsoft 365 administrator creates. Ask them for:
Also find out the address of the SharePoint site you want to read, and the name of its document library if it is not the usual “Documents”.
Connect SharePoint
1
Open the knowledge base
Go to Knowledge bases and open the knowledge base. Only its creator and Admins can add sources.
2
Add a SharePoint source
Click Add Source and choose SharePoint.
3
Enter the connection details
- Connection Name and Description, for example “Marketing library”.
- Client ID, Client Secret and Tenant ID from your IT department.
- Site URL (Optional): the site to read, for example
https://yourcompany.sharepoint.com/sites/Marketing. Leave it empty to use your organization’s root SharePoint site. - Drive Name (Optional): the document library. Keep “Documents” (the default) unless you need another library.
- Folder Names (Optional): to sync only some folders, enter their names separated by commas, for example “Sales, Marketing, HR”. Leave it empty to sync the whole library.
4
Choose when it syncs
Under Sync Configuration, choose Manual sync (it syncs only when you click Sync) or Scheduled sync (the default). For a schedule, pick a Schedule Frequency:
- Every X hours, from 1 to 23 hours;
- Daily, Weekly or Monthly, at an hour and minute you pick;
- Custom, with a cron expression.
5
Click Create
With Scheduled sync, the first sync starts right away. With Manual sync, open the source and click Sync to start it.
The source’s status changes from Syncing to Processing, then to Processed, and its Documents count shows the files found.
What is synced
- The files of the selected library, or of the folders you named, including their subfolders.
- Each sync adds new files, replaces files that changed, and removes the documents of files deleted from SharePoint.
- Only the file types listed in File uploads can be indexed. Keep other files out of the synced folders, because they cannot be processed.
- SaaS: files that would take you past your plan’s page allowance are skipped, and the source shows a warning saying how many. A changed file keeps its indexed version until the new version fits.
Sync now or change the connection
On the knowledge base page, the Sync Schedule and Last Synced columns show each source’s schedule and the time of its last sync.- To sync now, open the row’s actions menu and click Sync Now, or open the source and click Sync. Only one sync of a source runs at a time.
- To change the connection, open the source and click Edit, or choose Edit in the row’s actions menu. The client secret is not shown. Leave Client Secret empty to keep the current one. Saving a change to the credentials, the site, the library or the folders starts a sync.
If something goes wrong
When a sync fails, the source’s status shows Error (hover it to see the reason) and the source’s page shows a Sync Error banner.Authentication failed. Please verify your Client ID, Client Secret, and Tenant ID are correct.
Authentication failed. Please verify your Client ID, Client Secret, and Tenant ID are correct.
One of the three values is wrong, or the client secret has expired. Ask your IT department for a new secret if needed, then enter it with Edit.
Access denied. Please ensure the app has the required permissions...
Access denied. Please ensure the app has the required permissions...
The app lacks the
Sites.Read.All (or Sites.ReadWrite.All) permission, or admin consent was not granted. Ask your Microsoft 365 administrator to add it.No files found in the specified folders. Please check folder names and permissions.
No files found in the specified folders. Please check folder names and permissions.
This appears as a Sync Warning. Check the spelling of the folder names, and that the app may read them.
N file(s) were not added: they would pass your plan's page allowance. (SaaS)
N file(s) were not added: they would pass your plan's page allowance. (SaaS)
This appears as a Sync Warning. Delete documents you no longer need or upgrade your plan, then sync again. See Limits.
The first sync takes a long time
The first sync takes a long time
The first sync of a large library takes a while. Follow it on the processing status.