To successfully connect Gemini Enterprise with Microsoft SharePoint, you must complete the following configuration steps.
Set up authentication and permissions
You need to set up authentication and permissions in Microsoft Entra admin center. This is crucial for allowing the connector to access and synchronize data.
Register Microsoft Entra app for Microsoft SharePoint connector
Before creating the Microsoft SharePoint connector in Gemini Enterprise, register a Microsoft Entra application to enable secure access.
To register Gemini Enterprise as an OAuth 2.0 application in Entra, do the following:
- Navigate to Microsoft Entra admin center.
- In the navigation menu, expand the Entra ID and select App registrations.
- On the App registrations page, click New registration.
On the Register an application page, do the following:
- In the Name field, enter a name for your app.
- In the Supported account types section, select Accounts in this organizational directory only.
- In the Redirect URI section, do the following:
- In the platform list, select
Web. - In the redirect URI field, enter
https://vertexaisearch.cloud.google.com/console/oauth/sharepoint_oauth.html.
- In the platform list, select
- Click Register. Microsoft Entra creates your app and displays the overview page of your app.
In the app navigation menu, click Authentication.
Click Add redirect URI.
In the platform selection pane, do the following:
- Select Web.
- In the Redirect URI field, enter
https://vertexaisearch.cloud.google.com/oauth-redirect. - Click Configure.
Create an OAuth 2.0 configuration
To create a connection using the OAuth 2.0 authentication method, you need to obtain a client ID, client secret, and your Tenant ID from your Microsoft Entra application registration page.
Obtain client ID and client secret
To obtain the client ID and secret for the app, do the following:
- Navigate to the app page.
- In the app navigation menu, select Certificates & secrets.
- Click New client secret.
- In the client secret pane, do the following:
- In the Description field, enter a description for the secret.
- In the Expires list, select an expiry duration.
- Click Add.
- Copy the secret displayed in the Value column (
Client Secret) and the identifier in the Secret ID column (Client ID), and securely store both for later use.
Obtain Instance URI
The Instance URI has one of the following formats:
- For all first-level sites:
https://DOMAIN_OR_SERVER.sharepoint.com—for example,mydomain.sharepoint.com. - For a single site:
https://DOMAIN_OR_SERVER.sharepoint.com/sites/WEBSITE—for example,mydomain.sharepoint.com/sites/sample-site.
Obtain Tenant ID
Your tenant ID can be found in the Tenant ID box on the overview page in the Microsoft Entra admin center.
Configure Microsoft API permissions
To configure the required API permissions for the app, do the following:
- Navigate to the app page.
In the app navigation menu, select API permissions.
Click Add permissions.
In the Request API permissions pane, select Microsoft Graph.
Search for and select the following permissions based on your connection mode:
For the Federated search connection mode, no Graph API permissions are required.
For the Data ingestion connection mode with Federated credentials:
Permission Type Description GroupMember.Read.AllApplication Allows the connector to read memberships and basic group properties for all groups without a signed-in user. User.ReadDelegated Allows the connector to read the profile of signed-in users. It also allows the connector to read basic company information of signed-in users. Site control options Option 1: Sites.FullControl.AllApplication Allows the connector to have full control of all site collections. Option 2: Sites.SelectedApplication Allows the connector to access a subset of site collections. The specific site collections and the permissions granted can be configured in SharePoint Online. Profile reading options Option 1: User.Read.AllApplication Allows the connector to read user profiles. Option 2: User.ReadBasic.AllApplication Allows the connector to read a basic set of profile properties of other users in the organization. For the Data ingestion connection mode with OAuth 2.0 refresh token:
Permission Type Description GroupMember.Read.AllApplication Allows the connector to read memberships and basic group properties for all groups without a signed-in user. User.ReadDelegated Allows the connector to read the profile of signed-in users. It also allows the connector to read basic company information of signed-in users. User.Read.AllApplication Allows the connector to read user profiles. Site control options Option 1: Sites.FullControl.AllApplication Allows the connector to have full control of all site collections. Option 2: Sites.SelectedApplication Allows the connector to access a subset of site collections. The specific site collections and the permissions granted can be configured in SharePoint Online. If you enable Actions for either the Federated search or Data ingestion connection mode, also select the following permissions:
Permission Type Description Sites.ReadWrite.AllDelegated Allows the connector to edit or delete documents and list items in all site collections on behalf of the signed-in user. Files.ReadWriteDelegated Allows the connector to read, create, update and delete the signed-in user's files. Files.ReadWrite.AllDelegated Allows the connector to read, create, update and delete all files the signed-in user can access. Sites.Manage.AllDelegated Allows the connector to create or delete document libraries and lists in all site collections on behalf of the user. Click Add Permissions.
In the Request API permissions pane, select Microsoft SharePoint.
Search for and select the following permissions based on your connection mode:
For the Federated search connection mode:
Permission Type Description Sites.Search.AllDelegated Allows the connector to run search queries and to read basic site info on behalf of the current signed-in user. Search results are based on the user's permissions instead of the app's permissions. Site control options Option 1: AllSites.ReadDelegated Allows the connector to read documents and list items in all site collections on behalf of the signed-in user. Option 2: Sites.SelectedDelegated Allows the connector to access a subset of site collections with a signed-in user. The specific site collections and the permissions granted can be configured in SharePoint Online. For the Data ingestion connection mode with Federated credentials:
Permission Type Description Site control options Option 1: Sites.FullControl.AllApplication Allows the connector to have full control of all site collections. Option 2: Sites.SelectedApplication Allows the connector to access a subset of site collections with a signed-in user. The specific site collections and the permissions granted can be configured in SharePoint Online. For the Data ingestion connection mode with OAuth 2.0 refresh token:
Permission Type Description Site control options Option 1: AllSites.FullControlDelegated Allows the connector to have full control of all site collections on behalf of the signed-in user. Option 2: Sites.SelectedDelegated Allows the connector to access a subset of site collections with a signed-in user. The specific site collections and the permissions granted can be configured in SharePoint Online. If you enable Actions for either the Federated search or Data ingestion connection mode, also select the following permissions:
Permission Type Description AllSites.WriteDelegated Allows the connector to create, read, update, and delete documents and list items in all site collections on behalf of the signed-in user. Click Add Permissions.