Get started
Before you begin, ensure you have the following:- SharePoint Online: The connector works with SharePoint Online (part of Microsoft 365). On-premises SharePoint Server is not supported.
- SharePoint Site URLs: The full URLs of the sites you want to connect (e.g.,
https://contoso.sharepoint.com/sites/teamsite). - Azure AD permissions: The connector requires the following Microsoft Graph API application permissions granted on your Azure AD tenant:
Sites.Read.All: Read items in all site collections.Files.Read.All: Read all files that the app has access to.
- Authentication Methods: You must have one of the authentication methods configured:
- An Azure AD app registration with a client secret (Service Principal).
- Your Azure AD Tenant ID for the WisdomAI-managed app (Dedicated Multitenant App).
Authentication methods
Choose the authentication method that best fits your organization’s security requirements.- Service Principal (Client Secret)
- Dedicated Multitenant App (WisdomAI Managed)
Use your own Azure AD app registration to authenticate. This gives you full control over the app and its permissions.
- In the Azure Portal, navigate to Azure Active Directory > App registrations > New registration.
- Register a new application (e.g., “WisdomAI SharePoint Connector”).
- Note the Application (client) ID and Directory (tenant) ID from the Overview page.
- Navigate to Certificates & secrets > New client secret.
- Create a secret and copy the Value immediately; it will not be shown again.
- Navigate to API permissions > Add a permission > Microsoft Graph > Application permissions.
- Add the following permissions:
Sites.Read.AllFiles.Read.All
- Click Grant admin consent to approve the permissions for your tenant.
| Field | Description |
|---|---|
| Client ID | The Application (client) ID from your app registration |
| Tenant ID | The Directory (tenant) ID of your Azure AD tenant |
| Client Secret | The client secret value you generated |
Setting up the connection
Follow these steps to establish the connection within WisdomAI:- Navigate to the Overview tab in your WisdomAI domain and click Add Data Source.
- Select Connect another source from the Add Data Source selector and click Add Data Source.

- Select Connect to Data store or MCP server.
- Enter a descriptive Connection name (e.g., “Marketing SharePoint”) and select SharePoint as the data source.

- Configure Authentication: Choose your preferred method (Service Principal or Dedicated Multitenant App) and enter the required credentials.

- Configure SharePoint Sites:
- Click Add Site and enter the full Site URL (e.g.,
https://contoso.sharepoint.com/sites/teamsite).You can add multiple sites to a single connection. - (Optional) Click Add Library to restrict crawling to specific document libraries. If left blank, all libraries on the site are crawled.
- (Optional) Click Add Path to restrict crawling to specific folders within a library. Enter the path prefix (e.g.,
Marketing/2024) without a leading/.
- Click Add Site and enter the full Site URL (e.g.,
- Click Save. WisdomAI will validate the credentials before saving.

- After the connection is created, add it as a data source to your domain. WisdomAI will begin crawling the configured SharePoint sites.
Configuration reference
This section details the parameters used to define the scope of your data connection.Sites
Each connection can include one or more SharePoint sites. At least one site is required.| Field | Required | Description |
|---|---|---|
| Site URL | Yes | The full URL of the SharePoint site (e.g., https://contoso.sharepoint.com/sites/teamsite). |
| Document Libraries | No | Optionally restrict which document libraries within the site are crawled. |
Document libraries
Within each site, you can optionally specify which document libraries to crawl. If none are specified, all document libraries in the site are included.| Field | Required | Description |
|---|---|---|
| Library Name | Yes | The name of the document library (e.g., Documents). |
| Path Prefix Filters | No | Optionally restrict which folders within the library are crawled. |
Path prefix filters
Within each document library, you can optionally specify folder path prefixes to scope the crawl. If none are specified, all files in the library are included.- Formatting: Do not include a leading
/. UseReports/Q1, not/Reports/Q1. - Case-Sensitivity: Filters are case-insensitive (e.g.,
MarketingmatchesMARKETING). - Matching: Filters match on prefix.
Marketingwill matchMarketing/file.pdfandMarketing/2024/report.pdf. - Multiple Filters: You can add multiple filters per library. A file is included if it matches any configured filter.
Troubleshooting
Authentication failed
Authentication failed
- Verify that the Client ID, Tenant ID, and Client Secret are correct and have not expired.
- For the Dedicated Multitenant App method, confirm that admin consent has been granted (the status should show “Granted” in WisdomAI).
Connection validates, but no files were crawled
Connection validates, but no files were crawled
- Confirm the Site URL is correct and accessible. Ensure the Site URL points to a specific site, not the root SharePoint domain.
- Verify the Library Name matches the SharePoint library exactly.
- If using path prefix filters, verify the paths exist and do not start with
/. - Ensure the Azure AD app’s permissions (
Sites.Read.All,Files.Read.All) have been granted admin consent.
Specific inaccessible sites
Specific inaccessible sites
- The app may authenticate successfully but lack access to certain sites. Verify that your Azure AD app permissions are tenant-wide (admin-consented), not scoped to specific sites only.
Admin consent cannot be granted
Admin consent cannot be granted
- The user granting consent must have the Global Administrator or Privileged Role Administrator role in Azure AD.
- If your organization restricts app consent, contact your Azure AD administrator.
Next steps
Connect to GoogleSheets
Learn how to connect WisdomAI to GoogleSheets.
Connect to Slack
Learn how to connect WisdomAI to Slack.