Skip to main content

SharePoint Connector

Connect to Microsoft SharePoint Online to index documents, sites, and libraries.

Overview

The SharePoint connector allows you to:

  • Index SharePoint Online sites
  • Access document libraries
  • Sync permissions from Microsoft 365
  • Support multiple site collections

Prerequisites

  • Microsoft 365 account
  • SharePoint Online access
  • Azure AD app registration (admin setup)

Authentication

OAuth 2.0

  1. Click Connect with Microsoft
  2. Sign in to Microsoft 365
  3. Consent to requested permissions
  4. Return to ZenSearch

Required Permissions

PermissionPurpose
Sites.Read.AllRead site content
Files.Read.AllAccess documents

Configuration

SettingDescription
Site URLsSharePoint sites to index
Document LibrariesSpecific libraries or all
Include SubsitesIndex subsites
site_idsstring[] — Multiple site IDs to sync
include_all_sitesboolean — Sync all accessible sites
include_subfoldersboolean — Recursive folder traversal
include_versionsboolean — Include file version history
include_permissionsboolean — Sync document permissions to ZenSearch
exclude_foldersstring[] — Folder paths to exclude
exclude_patternsstring[] — File pattern exclusions
modified_afterstring — Only sync files modified after this date (ISO 8601)
modified_beforestring — Only sync files modified before this date (ISO 8601)

Setup Steps

  1. Add Connector: Knowledge → Add Data Source → SharePoint
  2. Authorize: Connect with Microsoft OAuth
  3. Select Sites: Enter site URLs
  4. Configure Libraries: Choose document libraries
  5. Test & Create: Verify and save

Site Selection

Sites:
- https://company.sharepoint.com/sites/Engineering
- https://company.sharepoint.com/sites/Marketing

Content Indexed

ContentIncluded
DocumentsYes
ListsOptional
PagesYes
AttachmentsYes

Permission Sync

SharePoint permissions are synced:

  • Site permissions
  • Library permissions
  • Item-level permissions

Best Practices

  1. Start with key site collections
  2. Focus on document libraries
  3. Enable permission sync
  4. Exclude archive sites

Troubleshooting

Access denied: Verify Azure AD permissions are consented

Missing sites: Check site URL format and access rights