A developer leaves on a Friday. IT deactivates her account in the identity provider and her laptop comes back. A month later her personal access token still pulls code from the company's GitHub organisation, because GitHub was never connected to single sign-on and nobody removed her from it.
Deactivating the identity provider account is the first step, not all of it. This guide gives you a checklist with an owner and a due time for every task, then covers what the identity provider can't reach. Granting access is the other half of the same lifecycle; our access request policy for Slack covers that side.
The short version: HR tells IT early. IT deactivates the account at the leaving time, then works through everything outside single sign-on, recording each step.
Who tells IT, and when
Offboarding starts with a message from HR. When it comes late, IT hears on the last afternoon, from a farewell post in Slack, or not at all.
In NIST's SP 800-53, control AC-2 asks organisations to notify account managers within a set time "when users are terminated or transferred". The discussion of PS-4(2), automated notification on personnel termination, names the gap: "not all personnel who need to know about termination actions receive the appropriate notifications."
So make it a rule: HR tells IT the day the leaving date is agreed, through one channel such as a form or a Slack channel. The message gives the name, the leaving time with its time zone ("Friday" is not a time), whether the departure is voluntary, the manager, who receives email and files, which devices come back, and any legal hold. For contractors, the contract end date is the leaving date.
The offboarding checklist
The due times are an example for a small IT team, not a standard. Change them, but keep one owner on every row. "Day 2" means the second working day after the last day.
Before the last day
| Task | Owner | Due |
|---|---|---|
| Send the leaver's details to IT | HR | The day the date is agreed |
| Name who receives email, files and calendars | Manager | 5 working days before |
| Export the leaver's app and group assignments | IT | 5 working days before |
| List apps outside single sign-on, admin roles, API keys and shared logins | IT and manager | 3 working days before |
| Arrange device return or a courier box | IT | 3 working days before |
| Transfer admin roles, integrations and documents the leaver owns | Leaver, checked by IT | 2 working days before |
| Move MFA for shared accounts off the leaver's phone | IT | 2 working days before |
At the leaving time
| Task | Owner | Due |
|---|---|---|
| Deactivate the account in the identity provider and clear sessions | IT | Leaving time |
| Collect laptop, phone, security keys and badge | Manager | Leaving time |
| Remove the leaver from apps outside single sign-on, and revoke their tokens and API keys | IT or app owner | Same day |
| Rotate shared passwords and secrets | Owning team | Same day |
| Convert or forward the mailbox and reset the password | IT | Same day |
| Wipe any device not handed back | IT | Same day |
The week after
| Task | Owner | Due |
|---|---|---|
| Check sign-in logs for activity after the leaving time | IT or security | Day 2 |
| Transfer files to the new owner | IT | Day 3 |
| Close and file the record | IT lead | Day 5 |
| Delete accounts and free licences | IT | When handover and retention allow |
Deactivate in the identity provider first
One action in the identity provider stops sign-in to every app behind single sign-on, so it comes first. Each provider offers options that do different things.
Okta: suspend, deactivate or delete
All three end the user's Okta sessions; Okta's comparison table says "all active sessions in Okta are stopped." The rest differs:
| Effect | Suspend | Deactivate | Delete |
|---|---|---|---|
| App assignments removed | No | Yes | Yes |
| Admin roles revoked | No | Yes | Yes |
| Authentication factors removed | No | No | Yes |
Only deletion can't be undone. Okta suggests suspending someone who has left "so that you can review their group and app assignments", but deactivation is the exit: "Deactivated users can no longer access their assigned apps." Okta also deprovisions them from those apps, but only "if deprovisioning is enabled for an app". Apps without it go on your manual list. Export the assignments first, because deactivation removes them. When we checked, it was under Directory > People, then More Actions > Deactivate.
Google Workspace: suspend, archive or delete
Suspending blocks access and deletes no data, but suspended accounts "are still charged at the same rate as active accounts". Archiving keeps the data, blocks sign-in "on any system" and frees the licence. Deleting removes any data you didn't transfer, and you can restore the account for only 20 days. A safe order: suspend at the leaving time, transfer what you need, then archive or delete.
Microsoft 365 and Entra ID: block and revoke
When we checked, Microsoft's first step for a former employee was under Users > Active users in the Microsoft 365 admin center: Reset password, Sign out of all sessions on the Account tab, then Block sign-in. The order matters: "Blocking an account can take up to 24 hours to take effect", so Microsoft says to reset the password to stop sign-in straight away. In the Entra admin center, clear Account enabled and select Revoke sessions. Don't delete the account yet: mail forwarding or a shared mailbox needs it "to anchor the email forwarding or shared mailbox."
End sessions, tokens and keys
Deactivation stops new sign-ins, not always what is already open. Microsoft explains that "Microsoft Entra ID can't directly revoke a session token issued by an application", and apps that use access tokens keep working until the token expires, one hour by default. Then, the same day:
- Okta. When we checked, More Actions > Clear User Sessions on the user's page opened a Clear Sessions & Revoke Tokens dialog.
- Google Workspace. Suspending "automatically resets their sign-in cookies", but Google says a cookie reset "does not sign them out of apps, such as Gmail and Google Drive for desktop." Its checklist for leavers also includes revoking OAuth 2.0 application tokens and app passwords, both on the user's Security page when we checked.
- Slack. Deactivating a member signs them "out of your workspace(s) on all devices", and "API tokens are revoked as well." Some apps they installed stop at the same time, so check what they installed first.
- Other tools. Replace API keys the leaver created in cloud, monitoring or payment tools, then delete the old ones.
GitHub needs its own step
Unless you use GitHub's Enterprise Managed Users, people join your organisation with their own personal accounts. GitHub's SCIM documentation says that with SAML single sign-on but no SCIM, members "aren't automatically removed from the organization", and "Authorized tokens grant access to the organization even after their sessions expire."
So remove them yourself: People, then Remove from organization. Owners can revoke fine-grained tokens under Settings > Personal access tokens > Active tokens, but GitHub's credential reference says owners "do not have direct visibility into or control over individual tokens" of the classic kind, so restrict those in your token policy. Replace any deploy keys the leaver set up too; they belong to the repository, not the person.
Apps outside single sign-on
Every app the leaver signed in to with a password stays open after deactivation: tools on plans without single sign-on, the domain registrar, social media accounts, trials started with a work email. Cyber Essentials asks you to "remove or disable user accounts when they're no longer required (for example, when a user leaves the organisation...)" in its requirements, and that includes these.
To find them, combine the exported app assignments, software spend on company cards, the password manager folders the leaver could open and their manager's answer to "what did they sign in to?"
Look for what the leaver owns, too. GitHub's SCIM link, for example, runs through one person's OAuth app: "If the user who last authorized this OAuth app leaves or is removed from the organization, SCIM will stop working."
Shared accounts, secrets and MFA devices
AC-2 asks for "a process for changing shared or group account authenticators (if deployed) when individuals are removed from the group." Rotate every shared password, Wi-Fi key and service credential the leaver could see, starting with anything that reaches production or money.
For MFA:
- If a shared account's one-time codes are on the leaver's phone, move them to a company device before the last day.
- In Okta, deactivation doesn't remove authentication factors; only deletion does. Reset them if you ever reactivate the account.
- In Google Workspace, remove the leaver's security keys and passkeys, and the recovery email and phone "so they can't use the password recovery feature to access their old account."
- Get hardware keys back. PS-4 lists "hardware authentication tokens" as company property.
Hand over email and files
In Google Workspace, super admins can transfer Drive files and the primary calendar while deleting the user; Gmail needs another route, such as the data migration service or archiving. To transfer files without deleting, use Apps > Google Workspace > Drive and Docs > Transfer ownership (when we checked). Google's transfer guide notes: "Transferring files does not affect who has access to the files." Check the sharing afterwards, and transfer group calendars the leaver owns before deletion, or they go with the account.
In Microsoft 365, you can convert the mailbox to a shared mailbox from the user's Mail tab (when we checked). Reset the password too: "if you don't reset the password, the original username and password will continue to work on the shared mailbox after the conversion is finished." OneDrive files are kept for 30 days after the account is deleted, so move them before then.
Devices: return, wipe, retrieve
PS-4 asks organisations to "retrieve all security-related organizational system-related property": the laptop, phone, security keys and badge, checked against your asset list.
Wipe what doesn't come back. Google Workspace can wipe a device or "only erase your organization's data", the right choice for a personal phone. In Microsoft's Exchange admin center, when we checked, the path was Recipients > Mailboxes, Manage mobile devices, then Account Only Remote Wipe Device and Block access.
A wipe needs the device online; Microsoft notes: "If the device is offline, it still has access to any locally stored data." And a wipe doesn't replace deactivation, because, as Google puts it, "the user can still access their Google data through web apps and other authorized mobile devices."
Example: one leaver at Acme
A made-up example: Acme uses Okta, Microsoft 365, Slack and GitHub.
| When | What happened |
|---|---|
| Mon 30 Nov | HR tells IT: Hannah Clarke, backend engineer, leaves Fri 11 Dec at 17:00 UK time, voluntary. Mail and files go to Mei. |
| Tue 1 Dec | IT exports Hannah's Okta assignments: 14 apps. Three aren't behind single sign-on: GitHub, the status page tool and the domain registrar. |
| Wed 9 Dec | Hannah hands her two Slack apps over to her team lead. IT moves the status page login's MFA to the IT phone. |
| Fri 11 Dec, 17:00 | Okta account deactivated and sessions cleared. Laptop, phone and security key handed to her manager. |
| Fri 11 Dec, 17:20 | Hannah removed from GitHub, two fine-grained tokens revoked, status page and registrar logins rotated, mailbox converted to shared with a new password. |
| Wed 16 Dec | No sign-ins after 17:00 on Friday. OneDrive files moved to Mei, laptop wiped, record closed. |
It works because every task had a name and a time before Friday.
Involuntary departures
When someone is dismissed, cut access at the time of the meeting. PS-4 says "the timely execution of termination actions is essential for individuals who have been terminated for cause", and that organisations may consider "disabling the system accounts of individuals who are being terminated prior to the individuals being notified."
- HR tells the IT lead privately, with the meeting time. Keep it out of shared channels.
- IT prepares the app list and the secrets to rotate.
- As the meeting starts, IT removes admin roles, deactivates the account and clears sessions. In Microsoft 365, reset the password too, since a block alone can take hours.
- Devices are collected in the meeting. For remote staff, the wipe starts at the same time.
- Shared secrets are rotated within the hour.
Keep a record of what was removed and when
When an auditor asks how you handle leavers, show the record for a real one. AC-2(4) asks systems to "automatically audit account creation, modification, enabling, disabling, and removal actions." Your identity provider logs its own changes. The GitHub removal, the rotated passwords and the returned laptop are only on record if someone writes them down.
Keep one record per leaver: when HR told IT, the leaving time, and each removal with its time and who did it. Write each line when it happens, and your next access review only has to confirm that leavers are gone, not find them. Our audit trail explainer covers the rest.
How the BeforeQuery AI ITSM Agent helps
The AI ITSM Agent runs onboarding and offboarding from one message in Slack, such as "Sam's last day is Friday." From the person's team and role it lists the accounts, groups and apps to remove, based on your playbook. Nothing changes until your IT lead approves the plan.
Once the plan is approved, it removes the access in Okta on the date you set, not when someone remembers. Steps it can't do itself, like shipping a laptop, are handed to a person with the context attached, and hand-offs such as hardware go to Jira. It records every step. It also takes hardware requests, locks lost devices and keeps track of who has what.
Today it starts from a message in Slack, not from your HR system. The same agent handles app access requests, the other half of the lifecycle, and runs access reviews, where managers keep or remove each grant and removals happen in Okta.
The AI ITSM Agent works with Slack and Okta, with hand-offs to Jira. To see it with your own offboarding playbook, book a demo.
Frequently asked questions
What should an IT offboarding checklist include?
The HR notice, identity provider deactivation, sessions and tokens, apps outside single sign-on, shared secrets and MFA, email and files, devices, and a record. Each task needs an owner and a due time.
Should I suspend or deactivate a leaver in Okta?
Deactivate at the leaving time. Suspending ends Okta sessions but keeps app assignments and admin roles, so it only suits a short review. Export the assignments first, because deactivation removes them.
Does deactivating the identity provider account remove all access?
No. It stops new sign-ins through single sign-on. Existing app sessions, tokens such as GitHub personal access tokens, apps outside single sign-on and shared passwords need their own steps.
Should we delete the account straight away?
Usually not. Deleting a Google Workspace user deletes data you didn't transfer, and a Microsoft 365 shared mailbox needs the account kept. Block or suspend first, finish the handover, then delete under your retention rules.
Sources
- NIST SP 800-53 Rev. 5: Security and privacy controls (AC-2, PS-4)
- NCSC: Cyber Essentials requirements for IT infrastructure v3.3 (April 2026)
- Okta: Deactivate and delete user accounts
- Okta: Suspend and unsuspend users
- Okta: Revoke all user sessions
- Google: Suspend a user temporarily
- Google: Archive former employee accounts
- Google: Delete or remove a user from your organization
- Google: Maintain data security after an employee leaves
- Google: Manage a user's security settings
- Google: Sign a user out of a managed Google Account
- Google: Transfer Drive files to a new owner as an admin
- Microsoft: Remove a former employee
- Microsoft: Prevent user sign-in and block access
- Microsoft: Wipe and block a former employee's mobile device
- Microsoft: Forward email or convert to a shared mailbox
- Microsoft: Convert a user mailbox to a shared mailbox
- Microsoft: Revoke user access in an emergency
- GitHub: About SCIM for organizations
- GitHub: Removing a member from your organization
- GitHub: Reviewing and revoking personal access tokens
- GitHub: GitHub credential types reference
- Slack: Deactivate a member's account
- Slack: Manage deactivated members' apps and integrations
