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
| Item | Requirement | Note |
|---|---|---|
| Teams account permission | Permission to add a workflow to the target channel (team owner or member) | Without it, workflow creation is blocked |
| Channel type | Standard channel | Private channels cannot be used for webhook workflows |
| Credential to issue | Workflow webhook URL | Issued once when the Teams workflow is created |
| Network access | HTTPS/443 (Sonar to the workflow webhook host, outbound) | A proxy is required in closed networks |
Querying chat messages
| Item | Requirement | Note |
|---|---|---|
| Entra account permission | Permission to register an application and grant admin consent for application permissions | Without admin consent, the query commands fail |
| API permissions | Chat.Read.All, User.Read.All (application permissions) | Required for querying chat messages and the user list respectively |
| License | A Microsoft Teams license assigned to the queried users | Required by the Microsoft Teams Export APIs |
| Credentials to issue | Tenant ID, client ID, client secret | Issued when the application is registered in Microsoft Entra |
| Network access | HTTPS/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.
| Task | Where | Sending channel messages | Querying chat messages |
|---|---|---|---|
| 1. Create a team and channel, issue a workflow webhook URL | Microsoft Teams | Required | - |
| 2. Register an app, issue a client secret, grant admin consent for API permissions | Microsoft Entra admin center | - | Required |
| 3. Add connect profiles | Logpresso Sonar | Required | Required |
| 4. Post-installation verification | Logpresso Sonar | Required | Required |