Skip to main content
Import Word, PowerPoint, Excel, PDF, and other documents from a SharePoint site. The connector preserves the folder hierarchy, downloads each file, and extracts its text content for use by your agents.

Supported File Types

The connector extracts text from these formats:
  • Office documents: .docx, .doc, .pptx, .ppt, .xlsx, .xls
  • PDFs: .pdf
  • OpenDocument: .odt, .odp, .ods, .rtf
  • Plain text: .txt, .md, .csv, .json, .xml, .html
  • Other: .epub
Files larger than 50 MB are skipped. Unsupported file types are listed without content.

Choose a permission mode

AGO supports two ways to grant access to SharePoint, set in Settings > Integrations > SharePoint: Both modes share the rest of the setup (Tenant ID, Client ID, Client Secret, Files.Read.All permission).

Setup — All sites mode (simple)

1

Register an app in Microsoft Entra ID

  1. Go to the Azure Portal > Microsoft Entra ID > App registrations > New registration
  2. Give it a name (e.g. “AGO SharePoint Connector”)
  3. Choose Single tenant (or Multitenant if you serve multiple Microsoft tenants)
2

Add API permissions

Under API permissions > Add a permission > Microsoft Graph > Application permissions, add:
  • Sites.Read.All
  • Files.Read.All
Then click Grant admin consent.
3

Create a client secret

Under Certificates & secrets > New client secret, generate a secret and copy its Value (you can only see it once).
4

Configure AGO

In AGO, go to Settings > Integrations > SharePoint, select All sites (simple), and paste:
  • Tenant ID
  • Client ID
  • Client Secret
Click Test Connection and then Save Configuration.
5

Create a knowledge source

  1. Go to Knowledge > Sources > Create
  2. Select SharePoint as the source type
  3. Pick a site from the dropdown
  4. Optionally pick a specific document library, or leave the default
  5. Save and run a manual sync

Setup — Selected sites mode (limited scope)

In this mode AGO can only access the SharePoint sites your admin has explicitly granted. Microsoft Graph does not return the list of granted sites, so you maintain it manually in AGO’s settings.
1

Register an app in Microsoft Entra ID

Same as the all sites mode: create an app registration in Azure Portal > Microsoft Entra ID > App registrations.
2

Add API permissions

Under API permissions > Add a permission > Microsoft Graph > Application permissions, add:
  • Sites.Selected
  • Files.Read.All
Then click Grant admin consent. At this stage AGO is not yet able to read any site — Sites.Selected only gives the capability to be granted access on a per-site basis.
3

Create a client secret

Under Certificates & secrets > New client secret, generate a secret and copy its Value.
4

Configure AGO

In AGO, go to Settings > Integrations > SharePoint, select Selected sites (limited scope), and paste the Tenant ID, Client ID, and Client Secret. Click Save Configuration.
5

Grant AGO access to each site

For every SharePoint site you want AGO to read, a SharePoint admin runs the following Microsoft Graph call with a token that has the Sites.FullControl.All application permission.Before running the commands, gather these values:
Alternatives: PnP PowerShell Grant-PnPAzureADAppSitePermission or the CLI for Microsoft 365.
6

Add the granted site URLs in AGO Settings

Open Settings > Integrations > SharePoint and, under Granted SharePoint sites, paste each site URL the admin granted in the previous step (e.g. https://contoso.sharepoint.com/sites/Marketing). Click Save Configuration. These URLs populate the site dropdown when you create a knowledge source.Repeat this step every time the admin grants AGO access to a new site.
7

Create a knowledge source

  1. Go to Knowledge > Sources > Create
  2. Select SharePoint as the source type
  3. Pick a site from the dropdown (populated from the granted URLs)
  4. Pick a document library, then browse the folder tree to choose where to start the import
  5. Save and run a manual sync

Configuration Options

What Gets Imported

  • Each folder becomes a parent document
  • Each file becomes a child document with its extracted text content
  • The web URL of every item is stored as an external link, so users can open the original file in SharePoint
  • File metadata (extension, size, MIME type, full path) is preserved

Troubleshooting

  • Verify the Tenant ID is the actual tenant GUID, not common
  • Check that the Client Secret is the secret value (not the secret ID)
  • If the secret is older than its expiration date, generate a new one
  • Ensure admin consent has been granted for the API permissions
AGO has not been granted access to this site. Send the curl command shown in AGO to your Microsoft 365 admin. After the grant runs, click Test access again. If you keep seeing 403:
  • Verify the application id in the grant matches your AGO Client ID
  • Verify the site URL in the grant request is identical to the one you paste in AGO
  • Some tenants take a few minutes for new grants to propagate
  • Confirm the app has Files.Read.All granted in addition to Sites.Read.All or Sites.Selected — site permissions alone let you list sites but not download file content
  • Check the configured folder path actually exists in the library
  • In Selected sites mode, confirm the site has been granted to AGO via Microsoft Graph
The file extension is not in the supported list (see “Supported File Types” above). The file is referenced but its content is not parsed.