Setting up SharePoint as a Source

Connected SharePoint before November 2026? You may be on the Legacy SharePoint source.

👥

Access Required

Guru Access: You need to be an Admin, Source Creator, or relevant custom role to set up Sources.

SharePoint Access:

To authenticate successfully, three conditions must be met:

  1. SharePoint Administrator role

  2. Site Collection Administrator access

    1. Site Collection Administrator access is required for each site so the REST API can read its role assignments.
  3. Site membership

    1. The user must also be a member of each site. If they are not, the site will not appear in the list of sites to choose from.

Admin consent: If your Microsoft tenant requires admin consent, the connection must be authorized by a user who can grant tenant-wide admin consent on behalf of your organization. This requires a Microsoft Entra account with one of the following roles:

  • Privileged Role Administrator, for granting consent for apps requesting any permission, for any API.
  • Cloud Application Administrator, AI Administrator, or Application Administrator, for granting consent for apps requesting any permission for any API, except Microsoft Graph app roles (application permissions).
  • A custom directory role that includes the permission to grant permissions to applications, for the permissions required by the application.

If the account you sign in with cannot grant admin consent, Microsoft will prompt you to sign in with an account that can. That account is used to authorize the connection as well as to grant consent.

Note that the integration uses delegated permissions which inherit the permissions of the authenticated user. See overview of Microsoft Graph permissions here.

What to consider when connecting SharePoint as a source

Start here: is your SharePoint tightly permissioned, with an admin managing access?

If yes, sync everything and let SharePoint permissions do the work. This is the recommended default for most connections.

  • We'll sync everything the authenticating user has access to.
  • Guru Knowledge Agents inherit SharePoint permissions natively, so users only ever see content they're already permissioned for in SharePoint.
  • Assign this source to a Knowledge Agent to let users search across whatever SharePoint content they individually have access to. This works well for more generalized agents that span multiple content types (e.g., engineering documents and company knowledge), since access is still governed per-user by native permissions — someone without engineering access simply won't see engineering results, even though the agent covers that content for others.
  • You can still filter further at the Knowledge Agent level if needed (see below) — but with permissions already doing the heavy lifting, most setups won't require it.

Are you connecting your own content without visibility into the broader org — for example, as a support manager syncing just your team's site?

Talk to your IT admin first, or use selective sync instead.

  • Selective sync limits what actually gets synced to specific drive items, like particular folders.
  • A source added this way is automatically pre-filtered to whatever scope you chose during setup.
  • If you later want to add more content, you'll reconfigure this same source rather than creating a new one — this keeps everything tied to a single Knowledge Agent. Only create a separate source connection if the new content needs to go to a different Knowledge Agent. See Adding More Content to an Existing Source below.

When should I filter at the Knowledge Agent level instead of restricting the sync?

Filtering at the agent level is a secondary option, not the default. It's most useful when:

  • You've synced everything, but a specific agent (e.g., a support ops agent) should only draw from one folder or subset of content.
  • There's content that isn't cleanly permissioned in SharePoint, and you need stricter, folder-level control than SharePoint's permissions alone provide.

The takeaway: start broad and let permissions do the work — layer on filtering only when a specific use case calls for it.

Authorizing with a Service Account

While you can connect using any admin's account, using a dedicated service account has several advantages:

  • Not tied to a single person. If the connecting admin leaves the company or their permissions change, the sync won't break or need to be re-authenticated under a new user.
  • More stable authentication. A service account reduces the risk of sync interruptions caused by password resets or other account-level events tied to an individual's credentials.
  • Scopes the sync to exactly what you want. Since this integration uses delegated permissions that inherit the authenticating user's access, a service account with access to only specific sites, drives, or folders naturally limits what gets synced — giving you tighter control over content scope without relying solely on selective sync settings.

If you go this route, work with your Microsoft 365 admin to provision a service account with access scoped to the SharePoint content you want Guru to sync, then use that account to authenticate during setup.

Setting up SharePoint as a Source

  1. Navigate to Manage > Sources.
  2. Select Microsoft SharePoint from the icon menu, then Configure Integration.
    1. Optional: Rename the Source.
  3. The next step connects your Microsoft SharePoint tenant so Guru can sync content with it. Two separate connections are required:
    • Microsoft Graph API — syncs your files
    • Microsoft REST API — syncs permissions
  4. Under Microsoft SharePoint Connection, click Connect.
  5. Sign in with an account that has Admin access to your Microsoft 365 tenant.
  6. Repeat the same process under Microsoft SharePoint REST Connection.
✍️

Note

About "Additional Authorization Parameters": Each connection includes an optional field called Additional Authorization Parameters. This field can be skipped for most setups. It's only needed if you want to customize the Microsoft sign-in screen — for example:

  • prompt=consent forces Microsoft's approval screen to reappear, even if it was previously approved.
  • login_hint=[email protected] pre-fills the sign-in email address.

Leave this blank unless you have a specific reason to use it.

  1. (Optional) Choose which SharePoint Sites you'd like to sync with Guru. If you skip this step, Guru will use the default site selection.
  2. (Optional) Within your selected Sites, choose which document libraries should be synced.
  3. (Optional) Within your selected document libraries, choose specific folders to sync. This lets you narrow the scope of content pulled into Guru.
  4. Guru will verify your SharePoint connection and confirm that API permissions were granted correctly. If validation is successful, your integration is ready to use and assign to a Knowledge Agent.

Objects synced from Sharepoint

  • Sites — the SharePoint sites themselves
  • Drives — the document libraries within those sites
  • DriveItems — the actual files/folders within those libraries (this is your real content — Word docs, PDFs, spreadsheets, subfolders, etc.)
    • Files are the primary objects used to generate search records.
  • Permissions — who has access to what
  • Groups and Users — the people/groups tied to those permissions

Adding More Content to an Existing Source

If you originally set up a selective sync and later want to bring in more content, you have two options depending on where that content needs to live:

Adding content to the same Knowledge Agent

Reconfigure the existing source rather than creating a new one. This keeps everything tied to a single Knowledge Agent.

  • On the Sources page, click the three-dot menu next to the source.
  • Select Re-authorize.
  • Click Reconfigure on the source.
  • Go through the setup process again, this time selecting additional content to sync alongside what was previously selected.

Adding content for a different Knowledge Agent

If the new content needs to go to a different Knowledge Agent, create a separate source connection instead:

  • On the Sources page, click Create a New Source Connection.
  • Follow the standard setup steps to connect and scope the new source.

Did this page help you?