A PowerShell module that connects to Microsoft Graph and generates comprehensive Markdown reports with embedded Mermaid flowchart diagrams for all Entra ID Identity Governance Lifecycle Workflows in your tenant.
-
PowerShell 7.1 or later (Core edition)
-
Microsoft.Graph PowerShell SDK — install it from the PowerShell Gallery:
Install-Module Microsoft.Graph -Scope CurrentUser
-
An Entra ID account with one of the following permissions:
LifecycleWorkflows.Read.AllLifecycleWorkflows.ReadWrite.All
Install-Module LCWMermaidGenerator -Scope CurrentUsergit clone https://github.com/goodworkaround/LCWMermaidGenerator.git
Import-Module ./LCWMermaidGenerator -ForceConnect-MgGraph -Scopes 'LifecycleWorkflows.Read.All'# Generate a report at the default location (LifecycleWorkflowsReport.md in the current directory)
Invoke-LCWMermaidGenerator
# Generate a report at a custom path
Invoke-LCWMermaidGenerator -ReportPath 'C:\Reports\MyWorkflowsReport.md'# Import the module (skip if installed from the Gallery)
Import-Module "./LCWMermaidGenerator" -Force
# Authenticate
Connect-MgGraph -Scopes 'LifecycleWorkflows.Read.All'
# Generate the report
Invoke-LCWMermaidGenerator -ReportPath './LifecycleWorkflowsReport.md'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
-ReportPath |
String | No | LifecycleWorkflowsReport.md |
Path where the Markdown report file will be written. |
Running Invoke-LCWMermaidGenerator produces:
- Console output — a human-readable text summary of every workflow, including trigger, scope, and task details.
- Markdown report file — a structured
.mdfile containing:- A metadata table per workflow (ID, display name, category, enabled status, created/modified dates).
- A numbered task list with task definitions and all configured arguments.
- An embedded Mermaid flowchart diagram visualizing the workflow execution path with color-coded nodes:
- 🔵 Dark blue — workflow entry node
- 🟢 Light green — enabled tasks
- ⚫ Gray dashed — disabled tasks
- 🟠 Orange — custom Logic App extension tasks
- 🟢 Light green — trigger / scope metadata nodes
The report can be rendered in any Markdown viewer that supports Mermaid (e.g. GitHub, VS Code with the Markdown Preview Mermaid Support extension, or Obsidian).
This project is licensed under the MIT License.