Audit inactive Microsoft 365 users and email license reports via Outlook
Ready for 3.0Ready 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-12-01.
What this workflow does
This workflow has 10 nodes and runs on a schedule (every day). Along the way it connects Microsoft Outlook.
How it runs
Trigger: On a schedule (every day).
- Set Audit Configuration (Edit Fields (Set)): sets or maps fields
- Fetch Subscribed SKUs (HTTP Request): calls an HTTP API
- Fetch All Users Paginated (HTTP Request): calls an HTTP API
- Filter Inactive Users & Estimate Costs (Code): runs custom JavaScript code
- Check for Inactive Users (If): checks a condition and branches into true / false
- Build Excel Report (Convert to File): converts data to a file
- Send All-Clear Email Notice (Microsoft Outlook): uses Microsoft Outlook
- Generate HTML Summary (Code): runs custom JavaScript code
- Email Inactive User Report (Microsoft Outlook): uses Microsoft Outlook
Services it uses
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)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Convert to File
n8n-nodes-base.convertToFile - Microsoft Outlook
n8n-nodes-base.microsoftOutlook
From the author
Quick overview This workflow runs monthly to audit Microsoft 365 users via Microsoft Graph, identifies licensed accounts that have been inactive beyond a defined threshold, estimates reclaimable license cost, and emails either an Excel report with an HTML…