Skip to main content

Microsoft Teams

The Microsoft Teams package provides comprehensive automation capabilities for Microsoft Teams, enabling you to create teams, manage channels, send messages, and interact with chats programmatically.

Overview

The Microsoft Teams package allows you to:

  • Connect to Microsoft Teams using OAuth2 authentication
  • Create and manage teams and channels
  • Send messages to channels and chats
  • Retrieve messages and chat information
  • List teams, channels, and chats
  • Manage chat members

Authentication

The package supports two authentication methods:

  1. Connect Node - Use the Connect node to establish a session that can be reused across multiple nodes
  2. Direct Credentials - Pass OAuth2 credentials directly to individual nodes without using Connect

OAuth2 Credentials Format

To use Microsoft Teams automation, you need to create OAuth2 credentials in your vault with the following structure:

{
"client_id": "your_client_id",
"client_secret": "your_client_secret",
"tenant_id": "common"
}

The package automatically handles:

  • OAuth2 authorization flow
  • Token refresh when expired
  • Token storage in vault

Required Microsoft Graph Permissions

Your Azure AD application needs the following permissions:

  • Team.ReadBasic.All - Read basic team information
  • Channel.ReadBasic.All - Read basic channel information
  • Chat.ReadWrite - Read and write chat messages
  • ChannelMessage.Send - Send messages to channels
  • offline_access - Maintain access to data

Common Use Cases

Team Communication Automation

  • Send automated notifications to teams and channels
  • Monitor and respond to chat messages
  • Create channels for projects or events

Team Management

  • Automatically create teams for new projects
  • Organize channels based on workflow
  • Archive or delete channels when projects complete

Integration & Reporting

  • Post status updates from external systems
  • Send alerts and notifications
  • Retrieve messages for analysis and reporting

Available Nodes