Send weekly Microsoft 365 license waste reports via Microsoft Graph and Gmail
Ready for 3.0What this workflow does
This workflow has 5 nodes and runs on a schedule (every week at 08:00). Along the way it connects Gmail. It also calls graph.microsoft.com over HTTP.
How it runs
Trigger: On a schedule (every week at 08:00).
- Fetch Subscribed SKUs (HTTP Request): calls graph.microsoft.com
- Fetch Users and Licenses (HTTP Request): calls graph.microsoft.com
- Analyze Unused Licenses (Code): runs custom JavaScript code
- Send Weekly Email Report (Gmail): uses Gmail
Services it uses
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 (4)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This weekly workflow uses Microsoft Graph to audit Microsoft 365 license usage, calculates unused seats and potentially wasted spend, and emails an HTML report via Gmail with unassigned licenses, disabled-but-licensed users, and licensed users…