TRUSTIVAN posts to Teams through an incoming webhook URL. It is not a Teams app: there is no bot, no message extension, and nothing in Teams can change a finding. Each message is an Adaptive Card with a title, the details and an Open in TRUSTIVAN button. Two kinds of URL are accepted, because Microsoft is retiring one in favour of the other and a tenant may have either:
  • a Workflows (Power Automate) webhook, served from *.logic.azure.com or *.azure-apim.net. This is the one to create today.
  • a legacy Office 365 connector URL, served from *.webhook.office.com.
The same card body works on both, so nothing in TRUSTIVAN changes if you move from one to the other: rotate the URL and carry on.

Prerequisites

  • The webhook URL. In Teams, open the channel’s Workflows, choose the template that posts to a channel when a webhook request is received, finish the wizard and copy the URL it shows. It is the credential: anyone holding it can post to that channel.
  • An administrator of the TRUSTIVAN organization, signed in with curl so cookies.txt holds the session (see the quickstart). Changing notifications needs webhooks:manage, which an API key cannot hold.
  • A plan that includes webhooks.

Create the destination

The URL goes in secret, not url, so it is stored encrypted, and it must be https://. A Teams destination takes no config: the URL already names the channel.

Test it

The test is queued (202) and delivered by the same worker as a real message. Treat the destination as unconfirmed until last_success_at is set.

What it posts

audit.recorded is also accepted, and needs the audit export entitlement. A Teams message cannot be edited later, so a finding that is resolved is a second card, not an update to the first.

Troubleshooting

See also