Back to Search AI connectors listMicrosoft Teams (MS Teams) is a collaboration and communication platform used in remote and hybrid work environments. Search AI ingests content from MS Teams channels, making conversations easily searchable.
Go to the Connectors home page in Search AI. Click Add Connector and select MS Teams. Provide the following details under the Authorization tab and click Connect.
Field
Description
Name
Unique name for the connector
Authorization Type
OAuth 2.0
Grant Type
Authorization Code
Client ID
Client credentials generated during app registration
Client Secret
Client credentials generated during app registration
Tenant ID
Tenant ID for your Microsoft account
To access channel conversations, Search AI requires the following Microsoft Graph permissions: Group.Read.All, Team.ReadBasic.All, ChannelMessage.Read.All, offline_access, Channel.ReadBasic.All, ChannelMember.Read.All, TeamMember.Read.All, User.Read.All.
After connecting the connector, go to the Configuration tab to set up content synchronization. Use Sync Now for an immediate sync, or Schedule Sync to configure a recurring schedule.Search AI ingests conversations from MS Teams channels for the past 90 days.Messages are ingested as follows:
Thread messages: Messages in a thread are concatenated during ingestion to preserve conversation context and maintain dialogue flow.
Direct messages: Two or more consecutive messages in a channel may be concatenated based on similarity score, retaining relevant context. A maximum of three consecutive messages can be concatenated.
Each ingested item’s content field includes the message timestamp, author, channel name, and message text. If the message has an attachment, the attachment’s name and URL are also captured.Example content field:
"content": "In the searchai-dev channel, at 2024-12-26T13:20:07.170Z, john.smith messaged: The latest build is available for testing. Please find the release notes attached. This includes an attachment with the file name: release-notes.pdf and its URL: https://microsoft.com/files-pri/T082AFBJX27-F088SA71R4G/download/release-notes.pdf"
Reactions and mentions are captured as metadata. When two or more messages are concatenated, the URL links to the first message.To view ingested content, go to the Content tab.
Search AI automatically resolves permission entities for chat messages ingested from different channel types, using the team ID or channel ID based on the channel’s access model.