<img src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="" referrerpolicy="no-referrer-when-downgrade"/>
taskstemplates
feedback & roadmapbook a demo

Microsoft Teams

Frends offers seamless integration with Microsoft Teams, enabling you to effortlessly connect and automate data flows involving Microsoft Teams.

Frends provides tasks for performing all core Microsoft Teams operations.

By leveraging Frends' task-based approach, you can configure and customize Microsoft Teams integrations according to your specific requirements. Frends offers a wide range of tasks that facilitate integrations to a variety of systems and protocols.

SendMessage Authentication

Tasks like SendMessage require a token for authentication and authorization when calling the Microsoft Graph API.

⚠️ Microsoft only allows two methods for sending messages to a Teams channel via Graph API:

Delegated permissions — permitted when the application posts on behalf of a signed-in user.

Application permissions — permitted only for migration scenarios (e.g., importing historical messages into Teams channels using special APIs and headers).

This means that unless you're performing a Teams migration, you cannot post messages with application permissions.

Real-world options

⚠️ These options come with their own downsides — please use them carefully

User refresh token — Obtain a token via user login once, then use the refresh token to generate new access tokens. This way of getting token is not recommended.

ROPC (Resource Owner Password Credentials) — Supply username and password to acquire a user access token programmatically. This is a legacy flow and may not be supported if MFA or conditional access is enforced.

Alternative: Use Webhooks Instead

For a simple and reliable way to post messages to a Teams channel, consider using webhooks instead of Graph API.

🔄 Note: The classic “Incoming Webhook” connector is being deprecated. Microsoft now recommends using Workflows-based webhooks.

Official guide: Create incoming webhooks with Workflows for Microsoft Teams

Relevant Microsoft Docs

Post messages to a channel (Graph API)

Resource Owner Password Credentials (ROPC) flow

Use cases

Below you will find typical use cases for Microsoft Teams integrations and how they are implemented in Frends.

Notify Teams channel about changes in CRM

By using the HTTP trigger as a webhook for CRM events, we can create an integration that listens for e.g. customer related events and notify certain personnel about those changes.

Channel push

All tasks