This page describes how to set up authentication and permissions before creating the Microsoft Teams data store.
Set up authentication and permissions
You must set up authentication and permissions in Microsoft 365, which is crucial to allow Gemini Enterprise to access Microsoft Teams data.
Entra app registration for Microsoft Teams data store
You must set up a Microsoft Entra application registration to enable secure access to Microsoft Teams before you create the Gemini Enterprise data store.
To register Gemini Enterprise as an OAuth 2.0 application in Microsoft Entra, do the following:
- Navigate to Microsoft Entra admin center.
- In the menu, expand the Entra ID section and select App registrations.
- On the App registrations page, select add New registration.
- On the Register an application page, create an app registration by doing the following:
- In the Name section, enter a display name for the application.
Register an application page - In the Supported account types section, select Accounts in the organizational directory only. This option restricts access to users within your organization's Microsoft Entra tenant, which is appropriate for an enterprise application.
- In the Redirect URI section, select Web and enter the following
URL as web callback URL (or redirect URL):
https://vertexaisearch.cloud.google.com/oauth-redirect
- Click Register. Microsoft Entra creates your app and displays it on the All applications page.
- In the Name section, enter a display name for the application.
Create an OAuth 2.0 configuration
To create a connection using the OAuth 2.0 authentication method, obtain a client ID, client secret, and tenant ID from your Microsoft Entra application registration page by following these steps.
Obtain client ID and client secret
To obtain the client ID and secret for the app, do the following:
- Navigate to Microsoft Entra admin center.
- In the menu, expand the Entra ID section and select App registrations.
- On the App registrations page, select All applications.
- Open the application you created.
- On the app page, select Certificates & secrets.
- Click add New client secret.
- In the Add a client secret dialog:
- Enter a description for the secret.
Add a client secret dialog - Select an expiry duration. We recommend selecting the default value.
- Click Add.
- Enter a description for the secret.
- Copy the secret from the Value column (
Client Secret) and the identifier from the Secret ID column (Client ID), and store them securely for later use.
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 the Microsoft Graph permissions
To configure the required Microsoft Graph permissions for the app, do the following:
- Navigate to Microsoft Entra admin center.
- In the navigation menu, expand the Entra ID section and select App registrations.
- On the App registrations page, select All applications.
- Open the application you created.
- On the app page, select API permissions.
- Click Add a permission.
- In the Request API permissions page, select Microsoft Graph, and select Delegated permissions.
Search for and select the following permissions for your connection mode:
Connection mode Permission Permission type Purpose Federated search Chat.ReadDelegated Allows the app to read all chats. Chat.ReadBasicDelegated Allows the app to read basic properties of chats. ChatMessage.ReadDelegated Allows the app to read all one-to-one and group chats messages. Federated search and actions Chat.ReadDelegated Allows the app to read all chats. Chat.ReadBasicDelegated Allows the app to read basic properties of chats. ChatMessage.ReadDelegated Allows the app to read all one-to-one and group chats messages. ChannelMessage.SendDelegated Allows the app to send messages in any channel. ChatMessage.SendDelegated Allows the app to send chat messages. Click Add Permissions.