Skip to main content

SharePoint Connector

The SharePoint connector enables access to Microsoft SharePoint document libraries and sites.

Prerequisites

Before creating a SharePoint connector, you need:

  1. A Microsoft Azure Active Directory application
  2. Appropriate permissions for SharePoint access
  3. SharePoint site URL and document library information

Setting up Azure AD Application

  1. Go to the Azure Portal
  2. Navigate to Azure Active Directory > App registrations
  3. Click New registration
  4. Provide an application name
  5. Set the redirect URI (if using OAuth)
  6. After creation, note the Application (client) ID and Directory (tenant) ID
  7. Go to Certificates & secrets and create a new client secret
  8. Navigate to API permissions and add the following Microsoft Graph permissions:
    • Sites.Read.All or Sites.ReadWrite.All
    • Files.Read.All or Files.ReadWrite.All
  9. Grant admin consent for the permissions

Configuration Fields

SharePoint Configuration

Required Fields:

  • Title: A descriptive name for your connector
  • Application (Client) ID: From your Azure AD app registration
  • Directory (Tenant) ID: Your Azure AD tenant ID
  • Client Secret: From your Azure AD app registration
  • SharePoint Site URL: Full URL of your SharePoint site

Optional Fields:

  • Description: An optional description
  • Target Document Library: Specific document library name (defaults to "Documents")
  • Required Permissions: SharePoint permissions needed (auto-filled)

Finding SharePoint Information

SharePoint Site URL

To get your SharePoint site URL:

  1. Open your SharePoint site in a browser
  2. Copy the URL up to the site name: https://yourtenant.sharepoint.com/sites/sitename

Document Library Names

To find document library names:

  1. Navigate to your SharePoint site
  2. Click on the document library in the left navigation
  3. The library name appears in the URL and page title

Finding Azure AD Information

Application (Client) ID

  1. In Azure Portal, go to Azure Active Directory > App registrations
  2. Click on your registered application
  3. On the Overview page, copy the Application (client) ID

Directory (Tenant) ID

  1. On the same Overview page of your app registration
  2. Copy the Directory (tenant) ID

Client Secret

  1. In your app registration, go to Certificates & secrets
  2. Under Client secrets, click New client secret
  3. Add a description and choose expiration period (24 months recommended)
  4. Click Add and immediately copy the Value field
  5. ⚠️ Important: The secret value is only shown once - save it securely!

API Permissions Setup

  1. In your app registration, go to API permissions
  2. Click Add a permission > SharePoint > Application permissions
  3. Add required permissions:
    • Sites.Read.All (to read all sites)
    • Files.Read.All (to read files)
  4. Click Grant admin consent - this step is critical for the connector to work

Target Folders (Optional)

You can specify target folders to limit indexing scope. Navigate to the desired folder in SharePoint and use the path structure from the URL.