Send alerts to Teams
This guide posts events from chosen tenants into a Teams channel. Slack and email are at the end.
You need
Section titled “You need”- The admin role in the workspace.
- The Max or Super plan.
- Alerts in the sidebar, under Workspace. If it is not there, ask a platform operator to switch on alert channels for the workspace.
- Permission to create a flow in the Teams channel.
1. Create the flow in Power Automate
Section titled “1. Create the flow in Power Automate”- In Teams, open the channel, choose Workflows and search for the template that posts to a channel when a webhook request is received.
- Choose the team and channel, and create the flow.
- Copy the HTTP URL the flow gives you.
The trigger is named When a Teams webhook request is received. The URL is on a host ending in .logic.azure.com and has /workflows/ in its path. The older Office 365 connectors are retired and do not work.
2. Connect Teams in Identiguard
Section titled “2. Connect Teams in Identiguard”Do the steps in this order. Save changes stays disabled until a URL is entered and, when forwarding is ticked, at least one tenant is selected.
- Open Alerts under Workspace.
- On the Microsoft Teams card, paste the URL into Microsoft Teams webhook URL.
- Set Minimum severity. The default is
ERROR. ChooseWARNif you also want journey slowdowns. - In the Tenant forwarding scope card beside it, tick the tenants this channel should receive.
- Tick Enable Microsoft Teams forwarding.
- Choose Save changes.
You see Alert settings saved. and the chip on the card changes from Off to Live.
3. Test it
Section titled “3. Test it”Choose Send test message. It is available only after the URL is saved.
You see Test message sent. and a card appears in the Teams channel.
4. Check a real event
Section titled “4. Check a real event”Cause an event at or above the minimum severity in one of the chosen tenants. It appears in Teams as an Adaptive Card with the event type, severity, actor and tenant.
Replace or disconnect the webhook
Section titled “Replace or disconnect the webhook”- To change the URL, choose Replace beside the masked URL, paste the new one, choose Save changes and then Send test message.
- To remove the channel, choose Disconnect, then Disconnect again in the dialog Disconnect this channel? Forwarding stops immediately and the stored URL is deleted.
- In Slack, create an incoming webhook for the channel and copy the URL. It starts with
https://hooks.slack.com/services/. - Open Alerts. On the Slack card, paste it into Slack webhook URL.
- Choose Minimum severity. The default is
WARN. - In Tenant forwarding scope beside the card, tick the tenants.
- Tick Enable Slack forwarding and choose Save changes. The chip changes to Live.
- Choose Send test message.
- Open Alerts. On the Email card, type an address in Email recipients and choose Add recipient.
- A workspace member shows Confirmed at once. An address outside the workspace shows Awaiting confirmation. That person opens the confirmation email and chooses Confirm this address. The link lasts 72 hours.
- Choose Minimum severity:
WARN,ERRORorCRITICAL. - In Tenant forwarding scope, tick the tenants.
- Tick Enable email forwarding. It is available once one recipient is confirmed.
- Choose Save changes, then Send test email.
To send a confirmation email again, remove the address and add it again. There is no resend button.
To stop email alerts, untick Enable email forwarding and save. The Email card has no Disconnect.
If it does not work
Section titled “If it does not work”| What you see | What to do |
|---|---|
| Alerts is not in the sidebar | Ask a platform operator to switch on alert channels. Check the plan is Max or Super. |
| Save changes is disabled | Paste the URL, and tick at least one tenant in Tenant forwarding scope. |
| Send test message is disabled | Save the URL first. |
| Teams webhook URL host is not allowed. Use a Power Automate Workflows URL (logic.azure.com). | You pasted an old connector URL. Create a Workflows flow and use its URL. |
| Teams webhook URL does not look like a Workflows trigger. Classic Office 365 connectors are retired and are not supported. | Use the URL from the When a Teams webhook request is received trigger. |
| Microsoft Teams test message failed: webhook returned a status | The flow was deleted or switched off in Power Automate. Switch it on, or create a new one and choose Replace. |
| The chip says Off after you ticked the box | The chip shows the saved state. Choose Save changes. |
| Nothing arrives for a tenant | New tenants are not added automatically. Tick the tenant and save. |
| Nothing arrives for an event | The event is below the minimum severity. Lower the level, or test with a more severe event. |
Every message is explained in Alert channels.