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 |
|
|
EU |
|
|
Step 1 Grant administrator consent
An Entra or Global administrator completes this step.
Open the admin consent link for your region:
Sign in with the administrator account.
Review and approve the requested Microsoft Graph permissions.
Step 2 Create and initialize the service account
Create a service account for the integration, such as
sharepoint-sync@yourcompany.com.Sign in with that account at the confirmed service account application URL for Grata Intelligence to initialize it.
Open the link below for your region. Replace
<SERVICE_ACCOUNT_EMAIL>with the service account’s email address.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:
Open the Microsoft 365 admin center.
Open the SharePoint admin center.
Go to Active sites and select Create.
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.
Identify the base SharePoint domain, such as
yourcompany.sharepoint.com. Use the domain withouthttps://or a site path.Copy the URL for your region below.
Replace
<ACCOUNT_EMAIL>with the Entra administrator’s email address and<SHAREPOINT_DOMAIN>with the base domain.Open the completed URL and finish the administrator consent flow.
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>
Sign in to a confirmed service account application URL again as the service account.
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 |
Date | Include only files modified after January 1, 2023 |
File type | Include |
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
If the site is empty, add a test file.
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
Open Grata Intelligence.
Open your account menu and select Connections.
Select Agent Connections.
Under File Storage and Productivity, locate Office 365 and Sharepoint and check their status.
Step 9 Find the SharePoint option in chat
Open Home.
In the chat composer, open the + menu.
Open Connections and locate SharePoint. Scroll within the menu if needed.
