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
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
- Go to the Azure Portal > Microsoft Entra ID > App registrations > New registration
- Give it a name (e.g. “AGO SharePoint Connector”)
- 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.AllFiles.Read.All
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
5
Create a knowledge source
- Go to Knowledge > Sources > Create
- Select SharePoint as the source type
- Pick a site from the dropdown
- Optionally pick a specific document library, or leave the default
- 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.SelectedFiles.Read.All
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 Alternatives: PnP PowerShell
Sites.FullControl.All application permission.Before running the commands, gather these values:- curl
- 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
- Go to Knowledge > Sources > Create
- Select SharePoint as the source type
- Pick a site from the dropdown (populated from the granted URLs)
- Pick a document library, then browse the folder tree to choose where to start the import
- 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
Test Connection returns 401
Test Connection returns 401
- 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
Site dropdown is empty (All sites mode)
Site dropdown is empty (All sites mode)
The Microsoft Search index can be empty on new tenants or take time to populate. Use the URL input that appears below the dropdown — paste your SharePoint site URL (e.g.
https://contoso.sharepoint.com/sites/marketing) and click Test access.Site dropdown is empty (Selected sites mode)
Site dropdown is empty (Selected sites mode)
AGO needs the granted site URLs to populate the dropdown. Open Settings > Integrations > SharePoint and add the SharePoint site URLs your admin granted access to. Each entry is resolved against Microsoft Graph; URLs that fail to resolve are skipped silently.
Test access returns 403 (Selected sites mode)
Test access returns 403 (Selected sites mode)
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
idin 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
Sync runs but no files are imported
Sync runs but no files are imported
- Confirm the app has
Files.Read.Allgranted in addition toSites.Read.AllorSites.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
Files appear with placeholder text like [Unsupported file type]
Files appear with placeholder text like [Unsupported file type]
The file extension is not in the supported list (see “Supported File Types” above). The file is referenced but its content is not parsed.
Related
- Knowledge Connectors — All available connectors
- Knowledge Source Management — Managing sources
