After an Employee Leaves, Changes Role or an Outsourcing Project Ends: How Do You Close Every Account and Permission Cleanly?
Start with a standard you can check answers against. Closing access cleanly does not mean “this person can no longer log in”. It means that at one point in time every path they could once use is cut, and the evidence of the cut is retained. There are five lines: identity (the account itself), permissions (roles and data scopes), credentials (API keys, long-lived tokens, third-party authorisations), data (export channels and files already downloaded), and devices and physical tokens (laptops, access cards, USB dongles, SIM cards). Do only the first and the other four usually stay open.
If time and people are both short, the minimum set is three actions: on the day the departure takes effect, suspend the primary account and force every session offline; the same day, revoke delegated authority and integration credentials held in their name; within seven days, complete the handover of data and devices; within thirty days, run one permission review. That works in a team of a dozen people, with no dedicated security staff. What follows runs from why it is always missed, to what exactly must be reclaimed, when to act, what to trade off with a small team, and how to prove it is done.
1. Why this is never finished properly
Most companies run it like this: HR sends the departure notice, an administrator opens the admin console and disables the account, done. Three months later something happens and they find that the person could still get in through a shared operations account, or that a service account key in their name was still driving a scheduled job. This is not carelessness. There are three structural reasons.
First, people live in one system and accounts live in another. The HR system knows who leaves and when; the business system only knows which login names sit in its own account table. Nothing maps the two. What the administrator receives is usually a sentence — “so-and-so leaves next week” — and the rest depends on memory.
Second, permissions are a sediment of additions. Someone who stayed two years may have been granted permissions seven times for three projects, each with a reason at the time, and not once was “revoke when the project ends” recorded. Permissions only grow, and in the end nobody can say clearly what that person can see.
Third, much “access” is not an account at all. Delegated approval rights, shared links, collaboration spaces they were pulled into, approval nodes configured to route to them, keys hard-coded in scripts — none of these appear in the account list, and every one of them leads to data or production. Disable the account and all of these paths remain.
2. Classify first, then you know what to reclaim
Split the single word “account” and what actually needs reclaiming falls into six categories. The point of classifying is that each category has a different action, a different owner and a different way to verify it; do them mixed together and some will be missed.
| Object | Typical forms | Why it is missed | How to verify it is closed |
|---|---|---|---|
| Identity accounts | Admin logins, mobile numbers, email addresses, SSO identities, mini-program or app accounts | One person may hold separate accounts on the admin, operations and support sides | Search every system by person and confirm no usable login state remains |
| Roles and data scopes | Roles, menu permissions, data permissions, approval limits, field-level visibility of sensitive data | Permissions are added project by project and nobody records the expiry condition | Export the entitlement list by role and compare it with the actual list |
| Delegated authority and proxy relationships | Approval on someone else's behalf, finance proxy operation, administrator delegation, shared accounts, temporary elevation | Not in the account table; it is a relationship, not a record | Query both directions: grants made by the person and grants received |
| Integration credentials and tokens | API keys, long-lived access tokens, service accounts, webhook signing secrets, SSH keys | Usually stored in config files or third-party consoles and not linked to the person's account | Rotate the key and confirm calls with the old credential fail |
| Data channels | Bulk export, report subscriptions, shared links, external collaboration spaces, mail forwarding rules | These are features, not accounts; disabling an account does not touch existing links | Open each historical link and confirm it is dead or has been transferred |
| Endpoints and physical tokens | Office laptops, test machines, access cards, USB dongles, SIM cards, paper authorisations | Managed separately by admin or IT, disconnected from business systems | Sign off item by item against the asset register |
Delegated authority and integration credentials are the two most often skipped. Delegated authority is awkward because it has a direction: you must revoke what the person granted to others and also what others granted to them, and the second is routinely forgotten. Integration credentials are awkward because they do not follow the person. The person is gone and the key is still running on a server, usually with high privileges and nobody watching it day to day.
There is one more special case: credentials held by agent-style applications. An automated workflow or an agent is often bound to a service account that reads databases, calls interfaces and sends messages. Reclaim the person's permissions and, if that service account is left alone, you have kept an account that never resigns. So the checklist needs its own line: which automated workflows did this person configure or maintain, and whose credentials do those workflows use.
3. Timing matters more than the checklist: freeze, then clean, then review
The same actions only mean something at the right moment. Move through four points in time.
Day one, when the departure takes effect: freeze and disconnect. Suspend the primary account, revoke all sessions and refresh tokens, cancel delegated authority, collect devices, transfer ownership of files and workflows. Why the same day? The real risk is not that a departing person will do harm. It is that while the account still exists, anything done with it is recorded under their name, so responsibility cannot be assigned and it cannot be shown that they did not do it.
Day two: inventory ownership. List the resources they created or own — documents, dashboards, scheduled jobs, automated workflows, external shared links, approval nodes — and assign a new owner to each. This step cannot be skipped; deleting outright breaks work that is still running.
Day seven: clean up external dependencies. Rotate integration keys and check for third-party services registered in their personal name that still feed the system — SMS, maps, identity verification, payment callbacks, push notifications. Once such an account goes unpaid or is disabled, the business starts failing weeks later and is hard to trace.
Day thirty: review. Return to the permission matrix and confirm nothing is left, and also confirm no new opening was created for temporary convenience. This is the step most often skipped and the one that most often finds problems.
Three principles go with it:
- Suspend before deleting. Suspension is reversible and leaves a trail; the operator in historical records still points to a specific person. Delete outright and logs show an unknown user, and tracing breaks exactly where you need it.
- Transfer ownership before revoking permissions. The person is gone but documents and workflows are still running. Transfer first, then revoke, or business stops.
- Leave evidence for every action. Who did which step and when, whether a ticket or a console screenshot. The purpose is not to police insiders but to give the review something to stand on.
4. What to trade off when the team is small
The ideal is separation of duties: request, approve, execute and review done by four different people. A team of three or five cannot do that, and forcing it only turns the process into paperwork. Four compensating controls work instead.
Give permissions a default expiry. Standard permissions expire after ninety days by default, and renewal requires a written reason. This is easier to maintain than granting everything at onboarding and remembering to reclaim at departure, because it turns reclaiming into a routine that happens on a cycle instead of depending on someone's memory.
Require confirmation for critical actions plus spot checks afterwards. Changing roles, exporting full datasets and editing payment settings get a second confirmation at execution, and the operation records are sampled weekly, with the sampling itself recorded. Sampling does not need to cover everything; a few random records are enough to create a constraint.
Ban shared accounts and replace them with time-limited delegation. The real motive behind a shared account is usually “someone has to be able to operate while a colleague is on leave”. The need is legitimate; the answer is not a shared password but a delegation with a defined scope and expiry.
Layer by sensitivity. For highly sensitive systems — money, personal information, production — insist on two-person visibility however small the team. Internal tools and test environments can relax to single-person operation with after-the-fact audit. Layering prevents the outcome where “everything must be strict” quietly becomes everything relaxed.
All of this adds daily friction, especially during incident response. So prepare an emergency path in advance: a mechanism that can elevate temporarily, forces notification to the responsible people, and revokes automatically within twenty-four hours. Without it, a team will at some late night grant permanent access again, and nobody will remember to take it back.
5. How to prove it is clean
When reclaiming is done, verify with the following cases. Each needs a defined expected result and retained evidence; only then is the loop closed.
- Login test: try to log in with the departed employee's account; it should fail. The failure message should not distinguish “account does not exist” from “wrong password”, or it can be used to enumerate accounts.
- Token test: call an interface with a token they previously issued; it should return unauthorised, and the server log should show the rejection.
- Delegation test: query in both directions — the person as grantor and as grantee — and neither list should contain an active record.
- Data channel test: shared links they created should be dead or transferred; export records should be searchable by person, showing who exported what scope and when.
- Notification and task test: system alerts, approval tasks and report subscriptions still going to them should have been reassigned. This is the most commonly missed step, and the consequence is that alerts go to someone who has left and nobody picks up the failure.
- Matrix reconciliation: export the entitlement list by role and compare it with the actual system list. The difference should be zero, or every difference should have a written explanation.
6. Capabilities to write into the requirements before development
This is where custom projects lose the most: accounts and permissions are treated as a final layer of paint, added after the business features are done, so all that can be built is a minimum version that logs in and splits roles, with almost no reclaiming capability. When someone actually has to be closed out, the only option is digging through database records.
Six capabilities are worth writing explicitly into requirements and design:
- Accounts sourced from the organisation structure: the HR system or the enterprise collaboration platform is the single source of people, and departure or role-change events trigger actions inside the system instead of relying on manual synchronisation by an administrator.
- Permissions modelled in three layers: functional permissions, data scopes and field-level sensitive visibility modelled separately; delegated authority exists as its own object with grantor, grantee, scope and expiry.
- Suspension separated from deletion: suspension keeps historical attribution; deletion is used only where personal information genuinely must be erased. Keep them apart in the interface to avoid mistakes.
- Four elements for sensitive operations: who, when, what, and values before and after. Logs must be exportable and searchable by person, or they are useless during review.
- Bulk reclaiming: list everything a person holds in one place and provide a bulk revoke entry. Without it, reclaiming means searching system by system by hand.
- Delivery of an account list and permission matrix document: stating which functions and data each role maps to, who maintains it, and how changes are approved.
When BoilingWater builds custom software, AI applications, apps and mini-programs, and agent applications, the account system and permission model are designed together with the business features rather than added as a layer before go-live; deliverables include source code, data, documentation and third-party accounts, with dedicated maintenance after launch. These decisions determine whether closing out one person takes a few clicks or three days of record digging to confirm nothing was missed. For agent applications we additionally confirm who owns the service account credentials and how they rotate, so that “the person's access is closed but the machine's is still open” does not happen.
7. Choose a starting point for your situation
One or two in-house systems, a dozen people. Turn “suspend the account and revoke sessions on the day” into a tick-box checklist, name one person to execute it, and reconcile the permission list by role once a quarter. At this size no complex tooling is needed; what is needed is fixing the actions in place.
Several SaaS products and in-house systems, dozens of people. Keep an account register with at least person, system, role, grant date and expiry condition. Turn departure into a ticket: HR triggers, IT executes, the business owner confirms the data handover, each leaving a record at their step.
Outsourcing and multi-party collaboration. Give every outsourced account an expiry date, create a separate account group per project and disable the whole group at project end; set external collaboration spaces to expire automatically; and check whether contractors were pulled into internal groups, hold test-environment keys, or have downloaded production data.
8. Five things to do next
- Pull the current list. List every place that can log into a system or touch data, including the ones nobody manages but people still use. The test is simple: if it can read customer data or touch production, it belongs on the list, whether or not it was formally procured.
- Name the trigger. Who starts the reclaiming, and under what condition? Best is automatic triggering from the departure process; next best is one named role; worst is “someone mentions it when they remember”.
- Write the reclaiming checklist template. For each of the six categories, list the action, the owner and the form of evidence, as a tick-box ticket. Keep it short; a checklist longer than one page will not be used when people are busy.
- Define completion standards for three moments. State what must be true on the day, by day seven and by day thirty. Avoid words like “as soon as possible” that cannot be accepted.
- Run a drill. Walk a departed or test account through the checklist. The step where you get stuck is the real gap. A drill beats a discussion, because gaps usually sit in the system nobody thought to check.
Conclusion
Closing access cleanly is not fundamentally a security management problem. It is a question of whether the system was ever designed for people moving in and out. In a designed system, departure is a button; in an undesigned one, it is an archaeological dig. If you can only do one thing first, fix “suspend the account and revoke every session on the day of departure” — it covers the largest risk surface at the lowest cost, and is the most likely to actually be executed the next time someone leaves.
Supplementary Q&A
Is it cleaner to just delete the account after an employee leaves?
Not advisable. Deletion strips historical operation records of a person to point to, so when something goes wrong you cannot trace who did what. The right order is suspend first, keep attribution, and clean up after the retention period required by your data rules.
Shared accounts are common in small teams. Must they be banned?
Yes, but replace the need with a mechanism: give people who need temporary operations a delegation with a defined scope and expiry instead of a shared password. The deadliest problem with a shared account is not security but attribution: when something happens you cannot tell who did it, and when someone leaves you cannot reclaim it accurately, because you do not know how many people are using the account.
Contractors only work during a project. Do they need separate management?
They do, and more than permanent staff. Contractor accounts should be grouped per project with an expiry date, and the whole group disabled at project end. Also check whether they were pulled into internal communication groups, whether they hold test-environment keys, and whether they downloaded data to personal devices. These three are the most commonly missed at project close.
How often should permissions be reviewed?
Quarterly for critical systems, every six months for ordinary ones, and immediately on any personnel change. The point of review is not whether the list is complete, but whether every permission still in force has a business reason today. Those without one should be removed.
Sources
- Company statement: the description of BoilingWater's business scope, deliverable composition and post-launch maintenance comes from the company's public materials and is its own disclosure.
- Standard reference: the personnel security part of the Multi-Level Protection Scheme standards requires that access be terminated promptly after a person leaves a post; the exact clauses follow the standard text, and actual practice also depends on the regulatory requirements of the industry concerned.
- Author's recommendations: the six categories, four points in time, compensating controls and acceptance cases are compiled from common implementation experience to guide self-assessment and requirement definition. They are not a compliance certification conclusion.