Menu: runbooks, process, how-to, NIS2, wireless

Process guide P5

Status
Published
Last reviewed
Written

Joiners, movers and leavers

Accounts, access and devices for people who start, change role or leave, done the same way every time.

Why it matters

The risky account is the one nobody remembers: the leaver whose mailbox still syncs to a personal phone, the mover who kept access to the old department’s files, the contractor account created “for a week” two years ago. The NCSC advises having a joiners, movers and leavers policy so that access is revoked when it is no longer needed, or changed for movers, and removing temporary accounts when they are no longer required (NCSC 10 Steps: identity and access management).

The routine at a glance

When What Time budget
Each joiner Joiner checklist, from a written request 30 to 60 minutes
Each mover Mover checklist: remove old access before adding new 20 minutes
Each leaver Leaver checklist, on the last day or straight away if it is a dismissal 30 minutes
Monthly Compare the HR or management list of current staff with enabled accounts 15 minutes
Quarterly List inactive accounts and ask each owner to confirm or remove 30 minutes

These budgets are suggestions. The first few take longer while you write down your own steps.

The minimum version for a solo admin

  1. Nobody gets an account without a written request from their manager, even a one-line email.
  2. On the last day, the leaver checklist below, the same way every time.
  3. Once a month, compare the staff list with enabled accounts.

For a team of 2 to 5

  • One shared request form or mailbox for all three events, so nothing arrives by hallway conversation.
  • The person who does a leaver is not the only one who knows it happened: log it where the team can see.

Joiner checklist

  • Written request from the manager: name, start date, role, which groups, which device
  • Account created with a temporary credential and sign-in methods set on day one
  • Licences assigned
  • Group membership copied from the role, not from “someone similar”, because that copies their extras too
  • Device prepared and enrolled
  • Line added to the access record (template below)

Mover checklist

Remove the old access first, then add the new. Doing it the other way round is how people collect access over the years.

To see what a user is in today in Active Directory:

Get-ADPrincipalGroupMembership -Identity jdoe | Select-Object Name

Source: Get-ADPrincipalGroupMembership, Microsoft Learn

  • Written request from the new manager
  • Current groups listed and saved in the access record
  • Old role’s groups and shared mailboxes removed
  • New role’s groups added
  • Old manager told what was removed

Leaver checklist, same day

The order follows Microsoft’s guidance for revoking a user’s access (Revoke user access in Microsoft Entra ID).

If you have on-premises Active Directory, disable the account there first:

Disable-ADAccount -Identity jdoe

Source: Revoke user access in Microsoft Entra ID and Disable-ADAccount, Microsoft Learn

The same Microsoft page also advises resetting the user’s password twice in Active Directory, to reduce the risk of pass-the-hash.

In Microsoft Entra ID, disable the account and revoke its refresh tokens:

Connect-MgGraph -Scopes "User.ReadWrite.All","Directory.AccessAsUser.All"
$User = Get-MgUser -Search UserPrincipalName:'jdoe@example.com' -ConsistencyLevel eventual
Update-MgUser -UserId $User.Id -AccountEnabled:$false
Revoke-MgUserSignInSession -UserId $User.Id

Source: Revoke user access in Microsoft Entra ID, Microsoft Learn

Microsoft explains that applications using access tokens keep working until the current token expires, so access does not stop at the exact second you run this. Applications that do not sign in through Entra ID need their own accounts disabled; keep a list of those in the access record.

Mailbox and files. If the manager needs the mailbox, convert it to a shared mailbox and give the manager access:

Set-Mailbox -Identity jdoe@example.com -Type Shared

Source: Convert a mailbox in Exchange Online, Microsoft Learn

Check Microsoft’s current shared mailbox limits and licence rules before you remove the user’s licence (Shared mailboxes in Exchange Online).

  • Account disabled (on-premises first, then Entra ID), sessions revoked
  • Password reset twice in Active Directory, if you have it
  • Mailbox converted or forwarded as the manager decided, in writing
  • OneDrive and personal files handed to the manager as decided
  • Removed from all groups, shared mailboxes and admin roles
  • Accounts in applications outside Entra ID disabled
  • Company devices returned; wiped before reissue (Wipe devices with Microsoft Intune)
  • Shared passwords they knew changed, such as Wi-Fi keys or shared admin accounts
  • If they held an emergency access credential, it is replaced (H1)
  • Binder sheet 1 updated if they were a contact (P4)
  • Line closed in the access record

Quarterly: inactive accounts

In Active Directory, list user accounts with no logon in the last 90 days:

Search-ADAccount -AccountInactive -UsersOnly -TimeSpan 90.00:00:00 | Select-Object Name, LastLogonDate, Enabled

Source: Search-ADAccount, Microsoft Learn

In Microsoft Entra ID, Microsoft describes using the lastSignInDateTime property of the user’s sign-in activity to find inactive accounts (Manage inactive user accounts). Exclude your emergency access accounts from any clean-up, and send the rest to their owners to confirm.

Access record template

Example included. The row marked Example is made up to show the format. Delete it and add your own rows.

Date Person Event Requested by What was given or removed Done by Checked
Example: 2026-11-02 J Doe Leaver Manager, email of 2026-10-28 Account disabled, sessions revoked, mailbox to shared for manager, laptop wiped AB CD

Automation notes

  • Microsoft Entra lifecycle workflows can automate joiner, mover and leaver tasks, but they require Microsoft Entra ID Governance or Microsoft Entra Suite licences (Lifecycle workflows). Check your licences before you plan around them.
  • Without those licences, a short script per event that runs the commands above, with the user name as input, is honest and enough. Keep the checklist anyway, because the script does not hand over files or collect laptops.
  • Microsoft’s revoke access page recommends an automated provisioning and deprovisioning solution for applications. Where an application supports it, it removes one item from the leaver list.

Signs it is working

  • Every enabled account matches a person on the current staff list, or a named service with an owner.
  • Leavers are disabled on their last day, not when someone notices.
  • Movers’ group lists get shorter as often as longer.

Signs it is not

  • Accounts are created from a hallway request.
  • The quarterly inactive list keeps showing the same names.
  • A former employee’s mailbox still receives and sends mail.

R2 Locked out of Microsoft 365 relies on emergency access accounts that leavers must not hold. R1 Ransomware uses the same Disable-ADAccount step to stop an account involved in an attack.

Sources

Was this useful?

Esc
↑ ↓ moveEnter openEsc close