If you have already set up a connector, skip to How to Use the SharePoint Connector.
To integrate SharePoint with Abacus.AI, you need to set up the connector and provide the necessary permissions.
Go to the Admin Consent URL and grant consent or register the application.
Access Connected Services Dashboard:
Add New Connector:
Save
.Verify Connector Status:
Granting Permissions to the Client ID
After setting up the connector, you will see the client ID. You need to provide permission for your site to this client ID:
subdomain
.sharepoint.com/sites/name-of-your-site
/_layouts/15/appinv.aspx.abacus.ai
.xml
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="Read"/>
</AppPermissionRequests>
A new page will load, click Trust It to grant the permission.
NOTE: If you are not able to lookup the client id or you get the following error message when you try to verify your SharePoint connector,
Invalid Connector Configuration: Failed to verify SharePoint connector due to bad SharePoint connection. SharePoint response:{"error":"invalid_request","error_description":"Token type is not allowed."}
You need to ask your administrator to configure settings in your SharePoint by running the following commands in a Windows OS/VM:
```powershell
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
Import-Module Microsoft.Online.SharePoint.PowerShell
Connect-SPOService -Url https://<orgName>-admin.sharepoint.com
Set-SPOTenant -DisableCustomAppAuthentication $false
Set-SPOTenant -SiteOwnerManageLegacyServicePrincipalEnabled $true
```
Please replace <orgName>
with your actual organization name in the SharePoint admin URL.
This step ensures that the connector has the necessary permissions to access the specific folder you want to pull data from.
Access Connected Services Dashboard:
Add New Connector:
Save
.Toggle "Only Pull Folder" to "Yes". Provide the new user's Microsoft email and password, then click Save
.
Verify Connector Status:
No Additional Permissions Required: With this flow, you do not need to grant additional permissions to the client ID.
Once the SharePoint connector is set up, you can fetch data to train models in Abacus.AI.
Choose "Read from External Service" and select your SharePoint connector under "Connected Application Connectors".
Enter the Site URL for the SharePoint site you want to use, and specify the folder path if you have set up the connector to pull from a specific folder.
After the dataset is uploaded, configure the schema mapping and proceed to train models with the data.
Can I use multiple SharePoint connectors in Abacus.AI?
Yes, you can set up multiple SharePoint connectors in Abacus.AI, each with different configurations and permissions.
What's the right feature mapping schema that will allow documents to use the URLs of the original file location on the source page in the external chat portal?
To get the URLs to the original location of a file on the source page in the chatweb, you should set the URL as "Document source" instead of the file_path which is set as a document source by default.