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. This is crucial to allow the connector to access data. The MS Teams connector supports various authentication methods, such as OAuth client credentials or API tokens.
Entra app registration for Microsoft Teams connector
You must set up a Microsoft Entra application registration to enable secure access to Microsoft Teams before you can create the Gemini Enterprise connector.
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
URLs as web callback URLs (or redirect URLs):
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, you need to obtain a client ID, client secret, and 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 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.
Microsoft Graph minimum permissions
To configure the required API permissions 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 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 scopes for search:
Scope Description Team.Read.AllAllows the connector to read Teams information. Channel.Read.AllAllows the connector to read channel information. ChannelMessage.Read.AllAllows the connector to read messages in channels and chats. ChannelFile.Read.AllAllows the connector to read files within channels. ChatMessage.Read.AllAllows the connector to read chat messages. Schedule.Read.AllAllows the connector to read schedules.
Request API permissions page Click Add Permissions.