Microsoft Teams

Download 34
Last updated Nov 20, 2026

Install Guide

Note
This guide was written as of 2026-11-19. The Microsoft Teams and Microsoft Entra admin center screens and menu labels may change afterwards.

Overview

Microsoft Teams is the collaboration platform included in Microsoft 365. It provides a workflow feature that posts incoming webhook requests to a team channel. The Microsoft Teams app provides query commands for the following two features.

  • Sending channel messages: sends alerts and monitoring results to Teams channels. Uses the workflow webhook URL.
  • Querying chat messages: queries the tenant user list and the chat messages of a user through Microsoft Graph API. Uses the application credentials registered in Microsoft Entra.

The two features use different connect profiles, so configure only the feature you need.

Scope

Note
Works on Sonar 4.0.2312.0 or later with Microsoft Teams (Microsoft 365). Sending messages to a channel requires a Microsoft 365 license that allows the Workflows feature. Querying chat messages requires an application registered in Microsoft Entra and admin consent for its application permissions, and the queried users must be assigned a Microsoft Teams license.

Requirements

Sending messages to a channel

ItemRequirementNote
Teams account permissionPermission to add a workflow to the target channel (team owner or member)Without it, workflow creation is blocked
Channel typeStandard channelPrivate channels cannot be used for webhook workflows
Credential to issueWorkflow webhook URLIssued once when the Teams workflow is created
Network accessHTTPS/443 (Sonar to the workflow webhook host, outbound)A proxy is required in closed networks

Querying chat messages

ItemRequirementNote
Entra account permissionPermission to register an application and grant admin consent for application permissionsWithout admin consent, the query commands fail
API permissionsChat.Read.All, User.Read.All (application permissions)Required for querying chat messages and the user list respectively
LicenseA Microsoft Teams license assigned to the queried usersRequired by the Microsoft Teams Export APIs
Credentials to issueTenant ID, client ID, client secretIssued when the application is registered in Microsoft Entra
Network accessHTTPS/443 (Sonar to login.microsoftonline.com and graph.microsoft.com, outbound)A proxy is required in closed networks

Setup Flow

The steps depend on the features you use. In the table below, follow in order only the steps marked Required for the feature you use. Click a task name to go to its setup page.

TaskWhereSending channel messagesQuerying chat messages
1. Create a team and channel, issue a workflow webhook URLMicrosoft TeamsRequired-
2. Register an app, issue a client secret, grant admin consent for API permissionsMicrosoft Entra admin center-Required
3. Add connect profilesLogpresso SonarRequiredRequired
4. Post-installation verificationLogpresso SonarRequiredRequired

References