# Find Microsoft 365 SMTP AUTH senders with Microsoft Graph, OpenAI and Google Sheets

> Quick overview This workflow runs weekly to identify Microsoft 365 accounts sending via SMTP AUTH (Basic auth) using Microsoft Graph reports and sign-in logs, generates an OpenAI-based remediation plan for risky accounts, writes the inventory to Google Sheets, and sends a status digest to Telegram. How it works 1. Runs every Monday at 08:00 (or manually in test mode with built-in sample data). 2. Retrieves the Microsoft Graph email app usage user detail report (CSV) and Entra ID sign-in events filtered to the “Authenticated SMTP” client app. 3. Parses the usage report and aggregates sign-ins per account to capture counts, failures, last seen time, and sending IP addresses. 4. Combines both sources to produce one record per account with a verdict (BREAKS end of Dec 2026, CHECK, or No SMTP use seen) and supporting reasoning. 5. For accounts that need action, sends minimal account facts to OpenAI to return a structured device guess, a single recommended fix path, short steps, and a risk r

- **Domain**: `n8n-workflow-21809.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/21809
- Page (HTML): https://agenstry.com/agents/n8n-workflow-21809.n8n.io
- Documentation: https://n8n.io/workflows/21809
