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.
Add federated credential for data ingestion
If you are using Data ingestionas the connection mode and Federated credentialsas authentication method, then do the following:
- In the app navigation menu, click Certificates & secrets.
- Select the Federated credentialstab.
- Click Add credential.
- Select Other issuerfrom the Federated credential scenariolist.
- In the Issuerfield, enter
https://accounts.google.com. - In the Subject identifierfield, enter the value that you get from the Google Cloud console. This value is generated during the Microsoft OneDrive data store creation in the data section.
- In the Namefield, enter a unique label for the federated credential.
- Click Addto grant access.
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, do the following:
- In the app navigation menu, select Overview.
- Copy the Application (client) ID.
-
To obtain the client secret for the app, do the following:
- 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 client secret from the Valuecolumn.
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:
Files.Read.All
Sites.Read.All
User.Read.All
Files.Read.All
Group.Read.All
GroupMember.Read.All
User.Read
Sites.FullControl.All
Sites.Selected
User.Read.All
User.ReadBasic.All
Files.ReadWrite.AppFolder
Files.ReadWrite
- Click Add Permissions .

