Automation · Identity
Entra IAM Console: Joiner-Mover-Leaver for the Helpdesk
My entra-iam-automation scripts handle joiners, movers and leavers in Entra ID and hybrid Active Directory. They work, but only for someone comfortable in PowerShell. Helpdesk staff do most of this work, so I designed a console on top of the scripts.
The console holds no lifecycle logic of its own. It builds the parameters, shows the exact
command it will run, previews it with -WhatIf, and only then runs the same
tested scripts. One source of truth, and nothing hidden from the operator.
Project Snapshot
Overview
What I Built
- A WPF console with New starter, Move a user, Offboard a leaver and Reports pages
- One user or many on every lifecycle page: typed in or loaded from a CSV
- Cloud-only and synced users in the same list, each sent to the right script
- A preview of every row before anything changes
- Sign-in through its own app registration, with role-aware locking
- A results CSV per batch and an audit record of every run, with the operator and ticket
Skills Demonstrated
- PowerShell GUI development (WPF, XAML)
- Microsoft Graph and hybrid AD automation
- App registrations and delegated Graph permissions
- Designing safe tools for non-specialist operators
- Pester tests and CI on every push
- Release management and lab testing, cloud and hybrid
| Page | What it does | Tested in the hybrid lab |
|---|---|---|
| New starter | Creates the account, sets department, title and manager, assigns the licence | 2 hybrid users created in AD, synced and licensed in 37 seconds |
| Move a user | Changes department, title and manager; dynamic groups move the access | 9 cloud and synced users previewed in one list; a batch moved with one sync |
| Offboard a leaver | Disables, resets the password, revokes sessions, removes licences and groups | A cloud and a synced leaver offboarded in full in 46 seconds |
| Reports | Read-only checks: stale accounts, MFA, standing admins, risky apps and more | Every report run, one CSV each |
Feature · Many Users
Bulk Changes, Cloud and Hybrid in One Run
Batches are where the time goes: a new team starting on the same Monday, a department restructure, a round of leavers. Each lifecycle page takes up to 50 people (10 leavers), checks every row first, and won’t run the batch until every row passes, so nothing is left half-done. Hybrid users are created or changed in AD, then one delta sync covers the batch.
Feature · Safety
Hard to Get Wrong
A helpdesk tool that can disable accounts in bulk needs guard rails. The riskiest action, offboarding, has the most of them.
Before Anything Changes
- A ticket number on every run, checked against the ticket system’s format
- Preview first: the action button stays locked until a clean preview
- Leavers: the operator types the number of leavers, then confirms Yes/No (No by default)
- Change the list after a preview, and the preview has to run again
Access and Secrets
- Operators sign in as themselves, through the console’s own app registration
- Pages lock by Entra role: a User Administrator gets lifecycle pages, not Reports
- Temporary passwords are never written to the CSV or the log
- The console stores no secrets
Feature · Reports
Read-Only Checks
The Reports page runs the automation’s read-only reports and writes a CSV for each: stale accounts, MFA registration, standing admins, risky app permissions, manager coverage, unused licences, app credential expiry and group owners. An AD hygiene report appears when the ActiveDirectory module is available.
Scope & Honesty
Lab vs Production
Status: release candidate (v1.0.0-rc.3). Every page is tested in the lab, cloud-only and hybrid. Version 1.0.0 follows a pilot in a real tenant.
Ran on the DC: only to fit the lab in 16 GB. In production the console runs on a domain-joined admin workstation, never a domain controller.
Mailbox conversion: the lab licence has no Exchange plan, so converting a leaver’s mailbox to shared is still a script step, not a console button.
Code: the console’s repository is private. The automation it drives is public, with its tests and releases.
Next
Pilot
Next is a pilot in a real tenant, to test what the lab can’t: mailbox conversion, OneDrive handover and a row failing in the middle of a batch.