> ## Documentation Index
> Fetch the complete documentation index at: https://docs.asteragents.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft Teams

> Let agents read, search and post in Teams chats and channels as each member

## Overview

The Microsoft Teams integration lets agents work in the Teams chats and channels of the Aster member using them. Every member signs in with their own Microsoft 365 work or school account, so an agent sees only the teams, channels and chats that member is in, and anything it posts appears as that member.

Teams is configured separately from Outlook, SharePoint and OneDrive. Connecting Outlook does not connect Teams.

## Setup Guide

**1. Enable Teams for the organization**

An Aster admin opens **Control Hub > Integrations**, selects **Microsoft Teams**, and turns it on.

**2. Get Microsoft 365 admin approval**

Reading channel messages needs one-time approval from your Microsoft 365 administrator. The first person to connect sees a **Need admin approval** request, which your administrator approves in Microsoft Entra. One approval covers everyone in your organization.

**3. Add Teams tools to an agent**

Edit an agent and select the Teams tools it needs. Add **Send Teams Message** only to agents that should post.

**4. Let each member connect**

When a member opens an agent that uses Teams tools, Aster prompts them to connect their own Microsoft account. Scheduled tasks run as the member who owns them.

## Available Tools

* `teams_list_conversations` — List your teams and their channels, or your recent chats with their members' names and emails. Returns the IDs the other tools take.
* `teams_read_messages` — Read a chat, a channel (each thread with its replies), or one channel thread, newest first. Pass `since` to get only what changed after a date, for example in a daily digest.
* `teams_search_messages` — Search your chat and channel messages by keyword. Returns excerpts and the chat or channel to read in full.
* `teams_send_message` — Post as you in a chat, a channel, or a channel thread, or message one person directly by their work email. Agents write in markdown, and Teams shows the formatting.

## Permissions

Aster requests these delegated Microsoft Graph permissions:

| Permission | Used for |
| - | - |
| `Team.ReadBasic.All`, `Channel.ReadBasic.All` | Listing your teams and channels |
| `ChannelMessage.Read.All` | Reading and searching channel messages (needs admin approval) |
| `Chat.Read` | Reading and searching your chats |
| `ChannelMessage.Send`, `ChatMessage.Send` | Posting in channels and chats |
| `Chat.Create` | Opening a one-on-one chat with someone you haven't messaged |

## Limits

* Agents can't @mention people in a post, attach files, or react to messages.
* Search returns an excerpt of each message. Read the conversation for the full text.
* A channel read with `since` looks back through at most five pages of threads.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.