This page describes how to set up and configure a third-party configuration before creating the OneDrive data store.
Set up authentication and permissions
You must set up authentication and permissions in Microsoft 365. This is crucial for allowing the connector to access and synchronize data. The OneDrive connector supports various authentication methods, such as OAuth client credentials or API tokens.
Register Microsoft Entra app for Microsoft OneDrive connector
You must set up an Entra application registration to enable secure access to Microsoft OneDrive before you can create the connector in Gemini Enterprise.
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 IDand select App registrations.
- On the App registrationspage, click New registration.
-
On the Register an applicationpage, do the following:
- In the Namefield, enter a name for your app.
- In the Supported account typessection, select Accounts in this organizational directory only.
- In the Redirect URIsection, do the following:
- In the platform list, select
Web. - In the redirect URI field, enter
https://vertexaisearch.cloud.google.com/console/oauth/default_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 URIfield, 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 Descriptionfield, enter a description for the secret.
- In the Expireslist, select an expiry duration.
- Click Add.
- Copy the secret displayed in the Valuecolumn (
Client Secret) and the identifier in the Secret IDcolumn (Client ID), and securely store both for later use.
Obtain Tenant ID
Your tenant ID can be found in the Tenant IDbox 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 permissionspane, select Microsoft Graph.
-
Search for and select the following permissions based on your connection mode:
Connection modeScopePurposeFederated searchFiles.Read.All(Delegated) Allows the connector to read all files that the user can access.Sites.Read.All(Delegated) Allows the connector to read documents and list items in all site collections that the user can access.Data ingestionGroupMember.Read.All(Federated credentials & OAuth 2.0 refresh token) Allows the connector to read memberships and basic group properties for all groups without a signed-in user.User.Read(Federated credentials & OAuth 2.0 refresh token) 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.All(OAuth 2.0 refresh token only) Allows the connector to read user profiles.Sites.FullControl.All(Option 1)
Sites.Selected(Option 2)(Federated credentials & OAuth 2.0 refresh token) Option 1 allows the connector to have full control of all site collections. Option 2 allows the connector to access a subset of site collections. The specific site collections and the permissions granted can be configured in Microsoft OneDrive.User.Read.All(Option 1)
User.ReadBasic.All(Option 2)(Federated credentials only) Option 1 allows the connector to read user profiles. Option 2 allows the connector to read a basic set of profile properties of other users in the organization.ActionsFiles.ReadWrite.AppFolder(Delegated) Allows the connector to read, create, update and delete files in the Microsoft OneDrive folder.Files.ReadWrite(Delegated) Allows the connector to read, create, update and delete the files that the user can access. -
Click Add Permissions.

