⚙️ Email reports on expiring Microsoft Entra ID app secrets and certificates with Microsoft Graph

192 views · ⚙️ DevOps & CI/CD

Description

Monitor expiring EntraID application secrets and notify responsible

Stay ahead of credential expirations by automatically detecting Entra ID application client secrets and certificates that are about to expire, and sending a neatly formatted email report.

What this workflow solves

Expired client secrets and certificates are a common cause of unexpected outages and failed integrations. Manually checking expiration dates across many Entra ID applications is tedious and easy to miss. This workflow automates the discovery and reporting of credentials that will expire within a configurable time window.

Key features

How it works

  1. Fetches all Entra ID applications and their credential metadata via Microsoft Graph
  2. Separates client secrets and certificates into individual entries
  3. Filters entries that expire within the configured time window
  4. Builds a normalized list of expiring items with days remaining
  5. Emails an HTML table report (only if results exist)

Setup requirements

Notes

🔗 Nodes Used

Send Email, HTTP Request, Filter

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup