Approval-based Entra ID account deactivation
Build a workflow triggered by a request with the target user's UPN. Open a Jira issue and route an approval via Jira or email. On approval, disable the user in Microsoft Entra ID via Graph and revoke sessions; update the Jira issue with the outcome. Handle not-found users, approval timeouts (escalate), and Graph errors with retries. Output the disable status and the Jira issue link.
What this prompt builds
Disable an Entra ID account after a tracked approval, with the full history captured in Jira.
The problem
Disabling Azure AD accounts without an approval gate invites mistakes and leaves no audit trail of authorization. Manual handling also delays revocation when speed matters.
Solution and impact
This workflow requests approval via Jira or email, then disables the Entra ID account and records every detail on the Jira issue. Deactivations are controlled, documented, and quick.
