Skip to main content

Integrate with Microsoft Teams

Use the Microsoft Teams integration to receive notifications from Contrast in your configured Microsoft Teams instance.

To use this integration, configure a Power Automate instant cloud flow using Microsoft Teams.

Note

As of January 31, 2025, Microsoft is changing the way you create webhook integrations with Microsoft Teams. This procedure describes the new method for integrating Contrast with Microsoft Teams.

Before you begin

  • A Microsoft Power Automate account is required.

  • Turn on the New designer setting in the MS Teams environment for Contrast Security.

    This setting is required to see the Attachments adaptive card option.

  • If you want to receive notifications in a private channel, ensure you configure correct permissions in MS Teams.

    Sending notifications to a public channel has no requirements to change any permissions within the MS Teams environment

Create an instant cloud flow in Microsoft Teams

  1. Sign in to Power Automate.

  2. Select Create > Instant cloud flow.

  3. Enter a flow name (for example, Contrast MS Teams Integration).

  4. Select this trigger: When a Teams webhook request is received.

    This setting triggers your flow when a Teams channel receives a webhook request.

  5. Select Create.

Configure the Instant cloud flow trigger

  1. Select the tile for When a Teams webhook request is received to see the left panel.

  2. In Who Can Trigger the Flow, select Anyone.

  3. Select the Add icon (+) under When a Teams webhook request is received to add an action.

  4. Select Post card in a chat or channel.

    This option sends information to a Teams channel in a visually appealing format.

  5. In Post in, select Flow bot.

  6. In Team, select a team where you want to post the card.

  7. In Channel, select the channel where you want to post the card.

  8. In Adaptive Card, select the thunderbolt icon (TeamThurnderboltIcon.png) and select Attachments Adaptive Card.

  9. Select Save.

  10. in the Parameters tab for the flow, copy the HTTP URL.

    You need this URL to configure the Contrast integration.

Configure the Contrast integration

  1. In Contrast, under the user menu, go to Organization settings > Integrations.

  2. In the Microsoft Teams row, select Connect.

  3. Enter a name for the integration.

  4. Paste the webhook URL copied from Microsoft Teams.

  5. Select an application to enable notifications.

  6. Select Save.

Note

Contrast disconnects this integration if it fails to return a successful response after five attempts.