Templates / Monitor Entra ID high-risk users with Microsoft Graph, TheHive and Slack

Monitor Entra ID high-risk users with Microsoft Graph, TheHive and Slack

Ready for 3.0

by Muhammad Bin Zohaib ✓ · 21 views · created 2026-09-28 · SecOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 14 nodes and runs on a schedule (every 30 minutes). Along the way it connects TheHive 5 and Slack. It also calls graph.microsoft.com over HTTP.

How it runs

Trigger: On a schedule (every 30 minutes).

  1. Query Risk Detections (HTTP Request): calls graph.microsoft.com
  2. Group & Aggregate Per User (Code): runs custom JavaScript code
  3. Enrich Risky User (HTTP Request): calls an HTTP API
  4. Enrich Recent Sign-Ins (HTTP Request): calls graph.microsoft.com
  5. Assess, Correlate & Build Incident (Code): runs custom JavaScript code
  6. Query Open TheHive Alerts (TheHive 5): work with query
  7. Deduplication Decision (Code): runs custom JavaScript code
  8. Alert Already Open? (If): checks a condition and branches into true / false
  9. Update TheHive Alert (TheHive 5): update
  10. Create TheHive Alert (TheHive 5): uses TheHive 5

…plus 3 more steps. See the full node list below.

Services it uses

TheHive 5Slack

HTTP calls to: graph.microsoft.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

Quick Overview This workflow polls Microsoft Entra ID Protection for new high-risk risk detections, aggregates them per user, enriches them with risky-user and recent sign-in context from Microsoft Graph, then creates or updates matching alerts in TheHive and…

Excerpt from Muhammad Bin Zohaib's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.