This page describes how to create a data store and connect Microsoft SharePoint to Gemini Enterprise.
Before you begin
Ensure the following before you set up your Microsoft SharePoint federated connection:
Grant the Discovery Engine Editor role (roles/discoveryengine.editor). This role is required for the user to create the data store. To grant this role, do the following:
- In the Google Cloud console, go to the IAM page.
- Locate the user account and click the edit Edit icon.
- Grant the
Discovery Engine Editorrole to the user. For more information, see IAM roles and permissions.
Register Gemini Enterprise as an OAuth 2.0 application in Microsoft Entra ID and obtain the following credentials:
Client ID
Client secret
Tenant ID
Instance URI
Configure the Microsoft API permissions with the consent of a Microsoft SharePoint administrator.
Create Microsoft SharePoint data store
To create a Microsoft SharePoint data store, do the following:
In the Google Cloud console, go to the Gemini Enterprise page.
Select or create a Google Cloud project.
In the navigation menu, click Data stores.
Click Create data store.
In the Source section, search for Microsoft SharePoint, and click Select.
In the Data section:
In the Connector mode section, select Federated search or Data ingestion as the connection mode.
Click Continue.
In the Authentication settings section, configure authentication based on your chosen connection mode.
Provide the following authentication details as necessary:
- Client ID: The unique identifier of the application registered in your organization's Microsoft Entra ID.
- Client Secret: The secret key generated during the OAuth 2.0 application registration process in Microsoft Entra ID.
- Tenant ID: The unique identifier for your organization in Microsoft Entra admin center.
- Instance URI: The base URL for your Microsoft SharePoint instance (e.g.,
https://{your-domain}.sharepoint.com).
For more information, see Obtain client credentials.
If you selected Federated Search, click Login and complete the third-party sign-in.
Click Continue.
If you selected Federated Search, the Destinations section appears. Enter the base URL for the site.
Click Continue.
In the Entities to search (if you selected Federated search) or Entities to sync (if you selected Data ingestion) section:
- Select all the required entities.
- If you selected Federated search, proceed to the next step.
- If you selected Data ingestion, continue with the following steps:
- Optional: To sync specific projects, do the following:
- Click Filter.
- To filter entities out of the index, select the Exclude from the index checkbox, or to ensure that they are included in the index, select the Include to the index checkbox.
- Enter the keys. Press enter after each key.
- Click Save.
- To configure the sync schedule, do the following:
- In the Sync frequency list, select the sync frequency.
- To schedule separate full syncs of entity and identity data, expand the menu in the Full sync section and then select Custom options.
- In the Incremental sync frequency list, select the incremental sync frequency. For more information, see Sync schedules.
- In the Sync frequency list, select the sync frequency.
- Optional: To sync specific projects, do the following:
Click Continue.
In the Actions section:
- If you selected Federated search:
- From Select Microsoft SharePoint actions to enable, select the actions from the category to enable them for the connector.
If you selected Data ingestion:
In the Authentication settings section, configure authentication based on your chosen connection mode.
Provide the following authentication details as necessary:
- Client ID: The unique identifier of the application registered in your organization's Microsoft Entra ID.
- Client Secret: The secret key generated during the OAuth 2.0 application registration process in Microsoft Entra ID.
- Tenant ID: The unique identifier for your organization in Microsoft Entra admin center.
- Instance URI: The base URL for your Microsoft SharePoint instance (e.g.,
https://{your-domain}.sharepoint.com).
For more information, see Obtain client credentials.
Click Continue.
In the Destinations section, enter the base URL for the site.
Click Continue.
From Select Microsoft SharePoint actions to enable, select the actions from the category to enable them for the connector.
- If you selected Federated search:
Click Continue.
In the Configuration section:
- From the Multi-region list, select the location for your data connector.
- In the Data connector name field, enter a name for your connector.
- If you selected
USorEUas the location, configure the Encryption settings:- Optional: If you haven't configured single-region keys, click Go to settings page to do so. For more information, see Register a single-region key for third-party connectors.
- Select Google-managed encryption key or Cloud KMS key.
- If you selected Cloud KMS key:
- In the Key management type list, select the appropriate type.
- In the Cloud KMS key list, select the key.
Click Continue.
In the Billing section, select General pricing or Configurable pricing. For more information, see Verify the billing status of your projects and Licenses.
Click Create. Gemini Enterprise creates your data store and displays your data stores on the Data Stores page.
On the Data Stores page, click your data store name to see the status. After the data store state changes from Creating to Active, the Microsoft SharePoint connector is ready to be used.
For an ingestion connector created with Microsoft SharePoint, the data store state transitions from Creating to Running upon synchronization initiation. It then changes to Active once ingestion is complete, signifying that the data store is fully configured. Depending on data volume, ingestion may require several hours.
After creating the data store, create an app, connect it to the Microsoft SharePoint data store, and authorize Gemini Enterprise to access Microsoft SharePoint before executing any queries.
Enable real-time sync for data ingestion
Real-time sync only syncs document entities and doesn't sync data related to identity entities. The following table shows which document events are supported with real-time sync.
| Microsoft SharePoint entities | Create | Update | Delete | Permission changes |
|---|---|---|---|---|
| Attachments | ||||
| Comments | ||||
| Events | ||||
| Files | ||||
| Pages |
To enable real-time sync for your data store, follow these steps.
In the Google Cloud console, go to the Gemini Enterprise page.
In the navigation menu, click Data Stores.
Click the name of the Microsoft SharePoint data store for which you want to enable real-time sync.
On the data store Data page, wait until the Connector state changes to Active.
In the Real-time sync field, click View/edit.
To enable real-time sync, click the Enable real-time sync toggle.
In the Client secret field, enter a value. This value is used to verify Microsoft SharePoint webhook events. We recommend using a string of 20 characters.
Click Save.
Wait for the Real-time sync field to change to Running.
Data handling and query execution
This section describes how Gemini Enterprise manages your query and the privacy implications of using the federated data store.
Query execution
After you authorize Microsoft SharePoint and send a search query to Gemini Enterprise:
- Gemini Enterprise sends your search query directly to the Microsoft API.
- Gemini Enterprise blends the results with those from other connected data sources and displays a comprehensive search result.
Data handling
When using third-party federated search, the following data handling rules apply:
- Your query string is sent to the third-party search backend (Microsoft API).
- These third parties may associate queries with your identity.
- If multiple federated search data sources are enabled, the query might be sent to all of them.
- Once the data reaches the third-party system, it is governed by that system's terms of service and privacy policies.
What's next
- To provide a user interface for querying your Microsoft SharePoint data, create an app and connect it to the Microsoft SharePoint data store.
- To view the list of actions, see View actions.
- To preview how your search results appear after your app is set up, see Get search results.
- To enable alerts for the data store, see Configure alerts for third-party data stores.