When an admin leaves: the access checklist for the first day
Key takeaways
- Check that someone else holds the roles needed before you disable the leaver's admin account
- In Microsoft 365, reset the password, block sign-in and revoke sessions, because a block alone can take up to 24 hours
- An application can keep its own session going, so remove the leaver inside each app that matters
- Change every shared secret the leaver could read, and any emergency account they could open
- Disable first and delete later, so that mail, files and logs are still there when you need them
An administrator who leaves still knows your passwords, keys and systems, so the ordinary leavers' form is not enough. This guide gives a first-day order of work for a small IT team, with the waiting times that catch people out.
Why the first day matters
CISA and MS-ISAC published an advisory about a US state government organisation. An attacker had used network administrator credentials, through the account of a former employee, to get into its VPN. The victim confirmed that the account "was not disabled immediately following the employee's departure".
The attacker likely got that account's credentials from a separate data breach, so the former employee need not have done anything wrong.
Before you start: do not lock yourself out
Do this before the leaver's last hour, and before anyone clicks Disable.
- Find a second administrator. In Microsoft Entra ID, Microsoft's cloud directory, the User Administrator role can disable ordinary users, but disabling an admin account takes the Privileged Authentication Administrator role. To sign other administrators out in the Microsoft 365 admin centre, Microsoft says you need to be a Global Administrator. Check who holds those roles today.
- Test the emergency accounts. Microsoft recommends two or more cloud-only emergency access accounts, sometimes called break glass accounts. It lists the departure of the person with the most recent Global Administrator access as one reason to have them. Entra ID prevents the last Global Administrator account from being deleted, but not from being deleted or disabled on premises.
- List every account the person has. The NCSC tells organisations to give administrators one account for day-to-day work and another for administrative tasks. Count both, plus any temporary or test accounts they made.
- Agree the moment with HR. Have one person work through the list while another checks it.
Hour one: close the sign-ins
1. On-premises Active Directory
If your directory synchronises to the cloud, start here. Microsoft's steps are to disable the user with Disable-ADAccount, then reset the password twice with Set-ADAccountPassword. The second reset mitigates the risk of pass-the-hash, an attack that reuses a stored form of the password rather than the password itself. Microsoft says one reset might do if you can safely assume that the account is not compromised. For an administrator, do two.
2. Microsoft Entra ID and Microsoft 365
In the Entra admin centre, open the user, clear Account enabled and save, then select Revoke sessions. The PowerShell equivalents are Update-MgUser and Revoke-MgUserSignInSession. Microsoft's scripted steps also disable the user's registered devices.
Reset the password as well. Microsoft's Microsoft 365 guidance warns that blocking an account can take up to 24 hours to take effect, and says to reset the password to prevent sign-in access immediately. Doing all three costs a few minutes.
Repeat this for the separate admin account.
3. Google Workspace
Google's order for an administrator who is leaving is to suspend the account, follow its data security practices, review the admin audit log if you wish, remove the administrator role and then delete the account. A suspended user cannot access the Admin console or Google services. If you delete a super admin without removing the role first, the old account is left on the Roles page as "undefined", and you have to clear that entry separately.
4. The VPN and remote access tools
The attacker in the CISA case came in through the VPN. If your VPN, remote monitoring tool or hypervisor has its own local accounts, disabling the directory account does not touch them. Remove the leaver from each one by hand.
How long access really lasts
A disabled account is not always a disconnected one. An access token is the short-lived pass an app presents to a service. Microsoft says those issued by Entra ID last for 1 hour by default, and an app that relies on them keeps working until the token expires.
Continuous access evaluation (CAE) shortens that for supported services. It lets Exchange Online, SharePoint Online and Teams react when an account is disabled, a password is reset or an administrator revokes the refresh tokens. Microsoft aims for near real time, but says delays of up to 15 minutes might be observed.
Browser apps are the harder case. Many issue their own session token after sign-in, and Microsoft states that Entra ID cannot directly revoke a session token issued by an application. For anything important, such as finance, backup, password manager or remote support, sign in as another administrator, remove the leaver there and end their sessions.
The rest of the day: shared secrets and hidden routes
Work down this list in order of damage.
- The password vault. Remove the leaver, then change the entries they could read, beginning with network equipment, backup consoles and hypervisors.
- The domain registrar and DNS. Whoever controls the domain can redirect your website and mail. The NCSC says to have more than one trusted person with secure access to manage the domain, to enable 2-step verification for all administrators, and to run registrar dealings through the organisation's own secure systems. Move anything registered to the leaver's personal email.
- AWS. AWS recommends updating access keys when needed for use cases that require long-term credentials. If the leaver knew the root user's credentials, change the password, remove their MFA device, and check the registered email address. AWS recommends restricting access to account recovery mechanisms and using a group email address for root user credentials.
- Code and pipelines. Remove the person from your GitHub organisation. GitHub notes that removed members lose access to private forks of your private repositories but may still have local copies, so change any secret that was in them.
- Local administrator passwords. Change any that are shared between machines. Windows LAPS, the Local Administrator Password Solution built into supported versions of Windows, rotates each device's password and backs it up to Entra ID or Active Directory.
- Service accounts. List those whose passwords the leaver set, and schedule the changes. Our guide to service accounts and secrets covers how to do this without breaking the service.
What can wait, and what needs care
*Keep the disabled account until someone has taken over the mailbox and files, and ask about any legal hold first.
Do not rush the krbtgt reset. The krbtgt account is the built-in account behind Active Directory's Kerberos sign-in tickets. Our suggestion is to consider resetting it if the person was a domain administrator and you have reason to suspect misuse. Microsoft says to do it twice, waiting 10 hours between resets, or longer if your maximum ticket lifetimes are set above that default.
Read the logs. Check recent administrative activity for new accounts, role grants, mail forwarding rules and application secrets. Google suggests filtering its admin log by the admin's name to find possible unauthorised actions.
Collect the hardware. Take back laptops, phones, security keys, door cards and any backup media.
By region
The technical steps are the same everywhere; the official guidance differs.
- UK. The Information Commissioner's Office (ICO) access control toolkit says to remove leavers' access rights in a timely manner, including for temporary and contract staff, to keep a list of everyone with privileged access, and to document the leavers' process. The page says it is under review because of the Data (Use and Access) Act.
- Ireland. The Data Protection Commission's data security guidance says a "movers, leavers and joiners" policy is required in all organisations with access to personal data. It asks for particular attention to IT administrator accounts with unrestricted access to personal data.
- Canada. The Canadian Centre for Cyber Security's baseline controls for small and medium organisations call for accounts to be removed when employees no longer require them, and for administrator accounts to be used only for administrative activities.
- New Zealand. Own Your Online's insider threat guide advises processes to ensure that when an employee leaves, "their system logins and passwords are removed", that email access from home goes too, and that devices are handed back.
Frequently asked questions
How do I remove an admin's access straight away in Microsoft 365?
Reset the password, choose Sign out of all sessions, and block sign-in. Microsoft says blocking an account can take up to 24 hours to take effect, so it tells you to reset the password to prevent sign-in immediately.
Should I delete an administrator's account on the day they leave?
No. Disable it, remove its admin roles and keep it while you save mail and files and review the logs.
Which passwords should I change when an IT admin leaves?
Every shared one they could read: emergency accounts, local administrator passwords, network equipment, the domain registrar, the AWS root user, and the keys used by scripts and services they set up.
What to do next week
Run the checklist on paper for one administrator who is not leaving. On Monday, write down every account, vault and application that person can open. Over the next two days, check that a second person can do each step, starting with the registrar and the emergency accounts, and fix anything that only one person knows. By Friday, look for administrators who have already left, and disable whatever you find.
Sources
- CISA and MS-ISAC, AA24-046A: compromised account of a former employee
- Microsoft Learn, Revoke user access in an emergency in Microsoft Entra ID
- Microsoft Learn, Prevent user sign-in and block access to Microsoft 365
- Microsoft Learn, Remove a former employee
- Microsoft Learn, Continuous access evaluation
- Microsoft Learn, Manage emergency access admin accounts
- Microsoft Learn, Overview of enterprise application ownership
- Microsoft Learn, Windows LAPS overview
- Microsoft Learn, Reset the krbtgt password
- Google Workspace, Delete an administrator account
- AWS, Security best practices in IAM
- AWS, Root user best practices
- GitHub Docs, Removing a member from your organization
- NCSC, Managing public domain names
- NCSC, 10 Steps: identity and access management
- ICO, Access control toolkit
- Data Protection Commission, Data security guidance
- FedRAMP, Personnel security controls
- Canadian Centre for Cyber Security, Baseline cyber security controls
- Own Your Online, Protect your business from insider threat