Most companies have a reasonably good joining process. Someone gets a laptop, an email address and access to the tools they need, usually on day one. The leaving process is rarely as tidy. An email goes to IT, a few obvious accounts are switched off, and a long tail of forgotten access quietly persists.
That tail is a real problem. It is a security exposure, because a former employee or anyone who gets hold of their credentials may still reach company data. It is a cost, because unused software seats keep billing. And it is a compliance issue, because you cannot demonstrate control over who has access if nobody knows. This playbook covers how to automate employee offboarding so the same thing happens every time, regardless of who handles it.
Manual processes fail for structural reasons, not because people are careless. An employee accumulates access across dozens of systems over several years, often added informally by teammates. Nobody holds a complete list. Departures are frequently rushed, sometimes emotional, and often happen while the responsible manager is mid-quarter and distracted.
The result is predictable. The accounts people remember are the ones they use daily. The ones that get missed are the specialised tools, the shared logins, the third-party dashboards and the API keys created for a one-off project, which are precisely the accounts with the least oversight.
You cannot revoke what you have not catalogued. The first task is an inventory of every system that holds company data or costs money, and crucially of how access to each one is granted.
For each system record the name, who the internal owner is, whether access is controlled by single sign-on, whether it has an API that can deprovision users, and whether it holds data that must be preserved when an account is closed. Group the results into three tiers:
This inventory is also what reveals how much access sits outside single sign-on. Reducing that proportion is the highest-value structural fix available, because every system brought under central identity becomes automatically covered by every future offboarding.
Automation needs an unambiguous starting signal. In most companies the right one is a status change in the HR system, since that is the record of truth for employment. Avoid triggering from an informal message, which is easy to forget and impossible to audit.
Define the timeline clearly and write it down:
For involuntary departures, the timeline collapses to immediate. Your automation should support a fast path that runs every revocation at once, triggered by an authorised person, because this is exactly the scenario where a manual checklist is least likely to be followed properly.
Sequence matters. Suspend the identity provider account first, then invalidate active sessions and refresh tokens, because a suspended account with a live session is still an open door. Only then move through the connected applications.
A practical automation flow looks like this:
Steps that fail must be visible rather than silent. A revocation that errored and went unnoticed is the worst of both worlds, since the process looks complete while the access remains. Designing for this is a general automation discipline, covered in our guide to error handling in business workflows.
Consider an illustrative scenario. A sixty-person services company handles offboarding through a shared document. When a senior developer leaves, the obvious accounts are closed within a day. Four months later, during a security review, the team discovers that the former developer still has an active personal access token on a code repository, a seat on a monitoring tool billed monthly, and membership of a cloud project because that access was granted directly rather than through a group.
Nothing bad happened, which is the only reason it was survivable. The team responds by building an automated flow triggered from their HR system. It suspends identity and email, revokes repository and cloud access through APIs, releases paid seats, flags shared credentials for rotation, and opens handover tasks for the manager. Anything the automation cannot reach appears on an exception list that a named person must close within a day.
The important change is not speed. It is that the process now produces evidence. Every departure leaves an audit trail showing what was revoked and when, which is the artefact auditors and enterprise customers ask for, and which closely mirrors the design thinking behind audit logs for trust and compliance.
Access revocation is only half the job. Work product has to survive the departure, and that needs decisions rather than deletions.
That last point is a common source of outages. The cleanest prevention is to stop personal credentials being used for production automation at all, which is one of the practices covered in our guide to secrets management for startups.
The accounts that cause incidents are rarely the ones on the checklist. They are the ones nobody knew existed, which is exactly why the inventory matters more than the automation.
Do not attempt a complete platform in one project. Start with the inventory, then automate tier one and tier two, since those cover the majority of the risk. Generate tasks rather than silent actions for anything requiring judgement. Add tier three systems progressively, and each time you discover a tool outside single sign-on, move it under central identity so it is covered automatically from then on.
Run the process once as a drill using a test account before you need it for a real departure. A drill reveals the broken API credential or the missing permission at a moment when nothing is at stake.
Offboarding is a process that almost every growing company does informally for too long, and the gap only becomes visible during a security review or an audit. Automating it is not a large project. It needs an access inventory, a clear trigger, a defined order of operations, visible failures and a complete audit trail.
If you want help designing internal automations that are reliable enough to depend on, see how we build AI and automation solutions, or read more about our approach on our about page.