:wave: It appears the global failing policies webh...
# fleet
m
👋 It appears the global failing policies webhook is not compatible with Microsoft Teams. Not sure if error
400. Summary or Text is required
is on Fleet or Teams?
Copy code
Jul 29 14:32:08 fleet fleet: {"component":"crons","cron":"webhooks:global_failing_policies","err":"posting to \"<https://domain.webhook.office.com/webhookb2/8c786114-5da2-44e3-b414-5b6ea83a0c9e@b92d2b23-4d35-4470-93ff-69aca6632ffe/IncomingWebhook/4d0f8d96de1b486aa8c9a46832bb0940/22c87884-c8a7-42d4-960f-8c2403708e9d>\": error posting to <https://domain.webhook.office.com/webhookb2/8c786114-5da2-44e3-b414-5b6ea83a0c9e@b92d2b23-4d35-4470-93ff-69aca6632ffe/IncomingWebhook/4d0f8d96de1b486aa8c9a46832bb0940/22c87884-c8a7-42d4-960f-8c2403708e9d>: 400. Summary or Text is required.","level":"error","msg":"failed to send failing policies","policyID":20,"ts":"2022-07-29T18:32:08.481657287Z","webhook":"failing_policies"}
k
At first glance, it looks like Teams requires a field of
summary
or
text
, which isn't provided with the policies webhook. I'll see if I can dig into the documentation a little to see if they offer a workaround or you can set the required fields.
m
Cool. I looked around Fleet Github issues and the webhook docs https://fleetdm.com/docs/using-fleet/configuration-files#webhooks but didn't see anything. Thanks!
k
From what I'm seeing, it looks like you'd need to use some kind of intermediary to get the message into a format that Teams would be able to work with.
For example, sending the automation to Jira and then firing a webhook from Jira to Teams.
z
We've had good luck with the [https://www.tines.com/](Tines) free tier for transforming webhook requests.
m
Good info, I'll look into that
k
Thanks, @zwass!
m
To follow up, I was able to use MS Power Automate to intake the webhook and send it to Teams.
k
Awesome, thanks for the update!