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.

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
PageWhat it doesTested in the hybrid lab
New starterCreates the account, sets department, title and manager, assigns the licence2 hybrid users created in AD, synced and licensed in 37 seconds
Move a userChanges department, title and manager; dynamic groups move the access9 cloud and synced users previewed in one list; a batch moved with one sync
Offboard a leaverDisables, resets the password, revokes sessions, removes licences and groupsA cloud and a synced leaver offboarded in full in 46 seconds
ReportsRead-only checks: stale accounts, MFA, standing admins, risky apps and moreEvery report run, one CSV each

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.

New starter page in Many users mode: two hybrid users created, temporary passwords masked
Two hybrid new starters created in one run. Temporary passwords stay masked, and are wiped when the operator leaves the page.
Move a user page in Many users mode: one cloud and one hybrid user moved from Finance to HR
A cloud-only and a synced user moved together. The synced user also moves to the HR OU in AD.

WPF • Microsoft Graph • Entra Connect • Bulk CSV

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
Offboard a leaver preview: checks passed for 2 leavers, Offboard users locked until 2 is typed
Preview passed for two leavers. Offboard users stays locked until the operator types 2.
Offboard a leaver result: two leavers offboarded, one cloud and one hybrid, no manual items
Both leavers offboarded in full, one after the other, with a results CSV to attach to the tickets.

Least Privilege • App Registrations • Audit Logging • Safe Offboarding

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.

Reports page listing eight read-only reports with the licence each needs
Each report shows which Entra licence it needs, so nobody runs a P2 report on a P1 tenant and wonders why it’s empty.

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.

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.

The Automation on GitHub The Hybrid Lab Back to Projects