What Is Deprovisioning? Why It Matters and How to Automate It
Gregg DavisUpdated 9 min read

Every account your IT team creates will one day need to be taken away. Employees leave, contractors finish their engagements, and people change roles and stop needing what they had.
Removing that access is called deprovisioning. It’s the mirror image of provisioning, and in most organizations it’s the step that gets skipped, delayed or done halfway. That gap is where the security and compliance risk lives.
In this article, we’ll explain what deprovisioning means, when it should happen, what it needs to cover, the mistakes to avoid, and how to automate it.
What Is Deprovisioning?
Deprovisioning is the process of removing a user’s access to systems, applications and data when they no longer need it. It covers accounts, group memberships, licenses, mailboxes, devices and any other access tied to the person.
It applies to every kind of identity your organization manages: employees, contractors, vendors, interns and the service accounts people create along the way.
What Does Deprovisioned Mean?
A user is deprovisioned when every account and entitlement tied to them has been revoked. Their Active Directory and Entra ID accounts are disabled, their group memberships are removed, their Microsoft 365 license is reclaimed, their mailbox is handled according to policy, and their access to connected applications is cut off.
“Deprovisioned” is the end state you want the moment someone walks out the door. It shouldn’t be a task still sitting in a ticket queue weeks later.
Provisioning vs. Deprovisioning
Access provisioning grants access, and deprovisioning revokes it. They’re two halves of the same lifecycle, and they should run on the same rules, driven by the same HR events.
If you provision automatically but deprovision by hand, you’ve solved only half the problem, and left the riskier half undone. Our guide to user provisioning covers the other half, Active Directory user provisioning covers it for Active Directory, and joiner, mover, leaver automation covers the full lifecycle.
When Should Deprovisioning Happen?
Deprovisioning isn’t only for people leaving. Any event that ends someone’s need for access should trigger it.
When an Employee Leaves
The most familiar case. For a resignation, access usually ends at the close of the last working day. For an involuntary termination, it should end at the same time as the conversation, or just before it. Our guide to removing access for terminated employees covers that timing in detail.
When Someone Changes Roles
When an employee moves to a new team, they get the access the new role needs. The access from the old role is often left in place. Over a few moves, that turns into privilege creep, where a long-serving employee can reach far more than their job requires. Deprovisioning the old access is part of every move.
When a Contract or Project Ends
Contractors, temporary workers and project teams have a known end date. Set it on the account when you create it, so access expires without anyone remembering to remove it. See managing contractor and temporary worker lifecycles.
When an Account Goes Unused
Accounts that haven’t signed in for months are a sign that deprovisioning was missed somewhere. Regular access reviews catch them, along with access people no longer need.
Why Deprovisioning Matters
The risks of incomplete deprovisioning are concrete.
- Security exposure. An active account belonging to a former employee is an open door, for them or for anyone who obtains their credentials. Orphaned accounts are a common way in for attackers.
- Compliance failure. Auditors look specifically for access that outlived its owner, and lingering access is a frequent finding in access reviews.
- Wasted license spend. Every unreclaimed Microsoft 365 or SaaS seat is money paid for someone who no longer works there.
- Data governance gaps. Files, mailboxes and shared resources need to be transferred or retained correctly, not abandoned.
For the security side in more depth, see data security during offboarding.
What to Deprovision
A complete deprovisioning covers more than one account. Work through each layer.
Directory Accounts
Start with the account everything else hangs from, in Active Directory, Entra ID or both. In a hybrid environment, accounts synced from on-premises Active Directory have to be disabled and deleted there, not in Microsoft 365, according to Microsoft.
Disabling the account blocks new sign-ins, but it doesn’t end sessions that are already open. Microsoft’s guidance on revoking user access in Entra ID is to disable the account and then revoke its sessions. Even then, an access token stays valid until it expires, which is an hour by default.
Group Memberships and Roles
Groups grant access to file shares, SharePoint sites, applications and distribution lists. Remove them, and remove any administrative roles the person held. If the account is ever re-enabled by mistake, it should come back with nothing.
Email and Mailbox
Decide what happens to the mailbox before you touch the license. Most organizations forward mail to the manager or a successor for a while, give someone access to the old messages, or convert the mailbox to a shared mailbox. When a Microsoft 365 license is removed or the user is deleted, their email, contacts and calendar are kept for 30 days and then permanently deleted, according to Microsoft.
Licenses
Remove Microsoft 365 and other paid licenses so they return to the pool for the next hire. Otherwise you keep paying for seats nobody uses.
SaaS Applications
Applications that sign in through Entra ID or another identity provider lose new sign-ins when the account is disabled. Applications connected through SCIM provisioning can also have the user deactivated automatically. Microsoft notes that its own app provisioning service typically runs every 20 to 40 minutes.
Applications with their own logins are the gap. They need a documented manual step, with an owner who carries it out.
Remote Access, Devices and Credentials
Revoke VPN and remote desktop access, certificates and API keys issued to the person. Remove their multi-factor authentication methods. Lock or wipe company data on their devices with your device management tool. Change the password of any shared account they knew, and give service accounts they owned to a new owner.
Disable First, Delete Later
Disabling and deleting are different steps, and the order matters.
Disable immediately. A disabled account can’t be used to sign in, but its data is still there and it can be restored if something was missed.
Delete later, once data has been transferred or archived and your retention period has passed. Deleting too early can destroy mail, files or evidence you’re required to keep. Legal holds override your normal schedule.
How to Automate Deprovisioning
Manual deprovisioning depends on someone noticing a departure and working through a list. Automation removes both dependencies.
- Tie revocation to the HR event. When HR records a termination, a transfer or a contract end, that event should trigger deprovisioning automatically, not a manual cleanup later.
- Disable, then remove. Disable the account and revoke its sessions first. Then remove group memberships and roles.
- Reclaim licenses. Free Microsoft 365 and SaaS seats so they return to the pool for the next hire.
- Handle data according to policy. Forward, delegate or convert mailboxes, and transfer file ownership according to your retention rules.
- Route what can’t be automated. Open a tracked task for every application that has to be handled by hand, with an owner and a due date.
- Log everything. Record each revocation with a timestamp, so you can prove access was removed and when.
This is what employee offboarding automation delivers: deprovisioning that starts when HR records a departure, with a full audit trail. For the rest of the leaver process, such as hardware and knowledge transfer, see our IT offboarding checklist.
Common Deprovisioning Mistakes
Even teams with a process tend to make the same mistakes.
Stopping at the Directory
Disabling the Active Directory account feels like the job is done. Applications with their own logins, VPN accounts and API keys keep working until someone removes them too.
Forgetting Movers
Leavers get attention, but people who change roles often keep everything they had. Treat a move as a deprovisioning event for the old role.
Deleting Before Saving
Deleting an account before its mail and files are handed over loses work the business still needs. Disable first, transfer, then delete.
Keeping No Evidence
If you can’t show when access was removed, you can’t prove it to an auditor. A ticket closed without timestamps for each step isn’t evidence.
Trusting the Process Without Checking
Integrations fail and configurations change. Spot-check recent leavers in the systems themselves to confirm their access is really gone.
How ezOnboard Automates Deprovisioning
ezOnboard automates deprovisioning from your HR system into Active Directory, Entra ID and Exchange. HR stays the source of truth, and nobody needs to file an IT ticket.
When HR records a departure, your offboarding rules take over on the timeline you set. ezOnboard disables the account, removes group memberships, reclaims Microsoft licenses and forwards mail. When someone changes roles, it adds the groups and licenses their new role needs and removes the ones it doesn’t, so movers don’t accumulate access.
Every change is recorded with the HR event and the rule behind it, so proving that access was removed is a single export. Safety rails stop a run that would disable more accounts than your limits allow, before it changes anything.
Book a demo to see it with your own HR system, or check the ROI calculator to see what it could save you.
Frequently Asked Questions
What is the difference between provisioning and deprovisioning?
Provisioning creates accounts and grants the access a user needs. Deprovisioning revokes that access when it’s no longer needed. Both should be automated from the same source of truth, usually the HR system.
When should deprovisioning happen?
As soon as access is no longer needed. For a departure, that’s the end of the last day, or the moment of the conversation for an involuntary termination. For a role change, it’s when the move takes effect. Delays are what create the security gap.
Should you disable or delete a departed user’s account?
Disable it first, and delete it later. A disabled account can’t sign in but keeps its data, so mail and files can be transferred and mistakes can be undone. Delete it once your retention policy allows.
What happens to a deprovisioned user’s data and license?
The license is reclaimed for reuse. The mailbox and files are forwarded, delegated, archived or transferred according to your retention policy. In Microsoft 365, a user mailbox is permanently deleted 30 days after its license is removed, so handle the mail before then.
How does automated deprovisioning reduce risk?
It closes the gap between a departure and the removal of access, takes away the chance of a forgotten account, and produces a timestamped record of each step. Audits become an export instead of a scramble.