Skip to main content

Connect SharePoint File Sync to Grata Intelligence

SharePoint File Sync brings selected SharePoint content into Grata Intelligence. Setup includes administrator consent, a service account with access to the content, and a request to start syncing.

Written by Caleb Musselman

Before you start

Have the following available:

  • An Entra or Global administrator to complete admin consent.

  • A service account for syncing files and permissions.

  • An existing or new SharePoint Team Site or Communication Site.

  • Your SharePoint domain, such as yourcompany.sharepoint.com.

  • Your deployment region and the confirmed service-account sign-in URL.

Use the URLs for your region throughout setup. The supplied integration uses these Blueflame hosts:

Region

Authentication host

Application host documented in the source

US

https://api.blueflame.ai

https://app.blueflame.ai

EU

https://api.eu.blueflame.ai

https://app.eu.blueflame.ai

Step 1 Grant administrator consent

An Entra or Global administrator completes this step.

  1. Open the admin consent link for your region:

  2. Sign in with the administrator account.

  3. Review and approve the requested Microsoft Graph permissions.

Step 2 Create and initialize the service account

  1. Create a service account for the integration, such as sharepoint-sync@yourcompany.com.

  2. Sign in with that account at the confirmed service account application URL for Grata Intelligence to initialize it.

  3. Open the link below for your region. Replace <SERVICE_ACCOUNT_EMAIL> with the service account’s email address.

  4. Complete the sign-in and consent flow as the service account.

US:

https://api.blueflame.ai/prod/login/O365admin/redirect?email=<SERVICE_ACCOUNT_EMAIL>

EU:

https://api.eu.blueflame.ai/login/O365admin/redirect?email=<SERVICE_ACCOUNT_EMAIL>

Step 3 Select or create a SharePoint site

Use a Team Site or Communication Site that contains the content you want to sync.

If you need a new site:

  1. Open the SharePoint admin center.

  2. Go to Active sites and select Create.

  3. Create a Team Site or Communication Site.

Step 4 Grant the service account site access

Give the service account access to all content included in the sync request.

Site type

Site access specified in the supplied setup

Additional consent

Team Site

Add the service account to the Owners group

Complete Step 5 if the site uses Site* groups

Communication Site

Add the service account to the Site Owners group

Complete Step 5

Step 5 Grant SharePoint API consent when required

Complete this step for Communication Sites and Team Sites that use the Site* groups described in Step 4.

  1. Identify the base SharePoint domain, such as yourcompany.sharepoint.com. Use the domain without https:// or a site path.

  2. Copy the URL for your region below.

  3. Replace <ACCOUNT_EMAIL> with the Entra administrator’s email address and <SHAREPOINT_DOMAIN>with the base domain.

  4. Open the completed URL and finish the administrator consent flow.

  5. Repeat the flow with <ACCOUNT_EMAIL> set to the service account’s email address. Sign in as the service account.

US:

https://api.blueflame.ai/prod/login/o365_sharepoint_api/redirect?email=<ACCOUNT_EMAIL>&sharepoint_domain=<SHAREPOINT_DOMAIN>

EU:

https://api.eu.blueflame.ai/login/o365_sharepoint_api/redirect?email=<ACCOUNT_EMAIL>&sharepoint_domain=<SHAREPOINT_DOMAIN>
  1. Sign in to a confirmed service account application URL again as the service account.

  2. Open your confirmed O365 connection route for the deployment region and connect O365 to refresh the tokens.

Step 6 Choose optional sync filters

Before requesting a sync, decide which content to include. The supplied setup recommends filters for sites with 500 GB or more of data to reduce sync time and storage.

You can combine the following filters:

Filter

Example

Path or file name

Exclude paths containing Archive, or include only content under Active/

Date

Include only files modified after January 1, 2023

File type

Include .pdf, .docx, .xlsx, and .pptx; exclude .mp4, .mov, and .png

For example: “Include only PDF and DOCX files under Active/ that were modified after January 1, 2023.”

If no filters are needed, state “sync all content” in the request.

Step 7 Request the initial sync

  1. If the site is empty, add a test file.

  2. Send the following details to your Grata Intelligence contact:

    • The SharePoint site or library URL for the content to sync.

    • At least one user who has access to the site.

    • Any path or file-name include and exclude rules.

    • The date filter, if any, including whether it applies to the created or modified date.

    • Any file-type include and exclude rules.

    • “Sync all content” if no filters are needed.

The supplied setup notes that initial sync time depends on data volume and that loads of 500 GB or more may take up to a week.

Step 8 Check connection status in Grata Intelligence

  1. Open your account menu and select Connections.

  2. Select Agent Connections.

  3. Under File Storage and Productivity, locate Office 365 and Sharepoint and check their status.

Step 9 Find the SharePoint option in chat

  1. Open Home.

  2. In the chat composer, open the + menu.

  3. Open Connections and locate SharePoint. Scroll within the menu if needed.

Did this answer your question?