Ingest your files into Unstructured from SharePoint.

The requirements are as follows.

If you are setting up the SharePoint connector for the first time, you can skip past this note.

Previous versions of the SharePoint connector relied on SharePoint app principals for authentication. Current versions of the SharePoint connector no longer support these SharePoint app principals. Microsoft deprecated support for Share Point app principals on November 27, 2023. SharePoint app principals will no longer work for SharePoint tenants that were created on or after November 1, 2024, and they will stop working for all SharePoint tenants as of April 2, 2026. Learn more.

Current versions of the SharePoint connector now rely on Microsoft Entra ID app registrations for authentication.

To migrate from SharePoint app princpals to Entra ID app regisrations, replace the following settings in your existing SharePoint connector, as listed in the requirements following this note:

  • Replace the deprecated SharePoint app principal’s application client ID value with your replacement Entra ID app registration’s Application (client) ID value.
  • Replace the deprecated SharePoint app principal’s client secret value with your replacement Entra ID app registration’s Client secret value.
  • Add your replacement Entra ID app registration’s Directory (tenant) ID value, token authority URL value, and the correct set of Microsoft Graph access permissions for SharePoint Online.

If you need migration help, get assistance from our Slack community or contact us directly.

  • A SharePoint Online plan, or a Microsoft 365 or Office 365 Business or enterprise plan that includes SharePoint Online. Learn more. Shop for business plans. Shop for enterprise plans.

  • A OneDrive for business plan, or a Microsoft 365 or Office 365 Business or enterprise plan that includes OneDrive. (Even if you only plan to use SharePoint Online, you still need a plan that includes OneDrive, because the SharePoint connector is built on OneDrive technology.) Learn more. Shop for business plans. Shop for enterprise plans. OneDrive personal accounts, and Microsoft 365 Free, Basic, Personal, and Family plans are not supported.

  • The SharePoint Online and OneDrive plans must share the same Microsoft Entra ID tenant. Learn more.

  • The User Principal Name (UPN) for the OneDrive account in the Microsoft Entra ID tenant. This is typically the OneDrive account user’s email address. To find a UPN:

    1. Depending on your plan, sign in to your Microsoft 365 admin center (typically https://admin.microsoft.com) using your administrator credentials, or sign in to your Office 365 portal (typically https://portal.office.com) using your credentials.
    2. In the Users section, click Active users.
    3. Locate the user account in the list of active users.
    4. The UPN is displayed in the Username column.

    The following video shows how to get a UPN:

  • The SharePoint Online site URL.

    • Site collection-level URLs typically have the format https://<tenant>.sharepoint.com/sites/<site-collection-name>.
    • Root site collection-level URLs typically have the format https://<tenant>.sharepoint.com.
    • To process all sites within a SharePoint tenant, use a site URL of https://<tenant>-admin.sharepoint.com.

    Learn more.

  • The path in the SharePoint Online site from which to start parsing files, for example "Shared Documents". If the SharePoint connector is to process all sites within the tenant, this filter will be applied to all site document libraries.

    The following video shows how to get the site URL and a path within the site:

  • The Application (client) ID, Directory (tenant) ID, and Client secret for the Microsoft Entra ID app registration with the correct set of Microsoft Graph access permissions. These permissions include:

    • Sites.ReadWrite.All (if both reading and writing are needed)

    • User.Read.All Learn more.

    1. Create an Entra ID app registration.
    2. Add Graph access permissions to an app registration.
    3. Grant consent for the added Graph permissions.

    The following video shows how to create an Entra ID app registration:

    The following video shows how to add the correct set of Graph access permissions to the Entra ID app registration:

  • The token authority URL for your Microsoft Entra ID app registration. This is typically https://login.microsoftonline.com

To create the source connector:

  1. On the sidebar, click Connectors.
  2. Click Sources.
  3. Cick New or Create Connector.
  4. Give the connector some unique Name.
  5. In the Provider area, click SharePoint.
  6. Click Continue.
  7. Follow the on-screen instructions to fill in the fields as described later on this page.
  8. Click Save and Test.

Fill in the following fields:

  • Name (required): A unique name for this connector.
  • Site URL (required): The base URL of the SharePoint site to connect to.
  • Path (required): The path from which to start parsing files, for example Shared Documents.
  • Recursive: Check this box to recursively process data from subfolders within the specified path.
  • Client ID (required): The Application (client) ID for the Microsoft Entra ID app registration with the correct set of Microsoft Graph access permissions.
  • Tenant ID (required): The Directory (tenant) ID for the Entra ID app registration.
  • User Principal Name (UPN) (required): The UPN for the OneDrive account in the Entra ID tenant.
  • Client Credentials (required): The Client secret for the Entra ID app registration.
  • Authority URL (required): The authentication token provider URL for the Entra ID app registration. The default is https://login.microsoftonline.com.