When an employee leaves: what happens to their Microsoft 365 data
Nothing in Microsoft 365 keeps a departed employee's data for you. Removing the licence starts a 30-day clock for the mailbox, after which Microsoft says the email, contacts and calendar are deleted permanently. Deleting the account lets you restore it for 30 days, and starts the OneDrive cleanup, which keeps the files for 30 days by default (30 to 3650 days if you change it) before the OneDrive goes to a recycle bin for another 93 days. A OneDrive that stays unlicensed is put into read-only mode after 60 days and archived after 93. So decide before you touch the licence: what has to be kept and for how long, back up or export it, hand over access, and only then remove the licence and delete the account.
What is deprovisioning, and what does it have to do with your data?
Deprovisioning means taking away the accounts, licences and access rights of a person who leaves, in an orderly way. The security half is well known: block the sign-in, revoke sessions, wipe devices. The data half is easy to forget, because Microsoft 365 acts on its own timetable once an administrator removes a licence or deletes an account. The tables below are the timetable, taken from Microsoft Learn. They describe the default behaviour, and tenant settings, holds and retention policies can change it.
What happens when you remove the licence?
| What | What Microsoft documents | What it means for you |
|---|---|---|
| Mailbox | When a licence is removed or deleted, the email, contacts and calendar are retained for 30 days and are then deleted permanently. | Thirty days is the window to convert the mailbox, put it on hold or save its content. Convert it first: the conversion needs a licence on the mailbox. |
| OneDrive | If the licence is removed but the account is not deleted, the content stays accessible to administrators even after 30 days. A OneDrive without a valid licence goes into read-only mode after 60 unlicensed days and is archived after 93. | Neither administrators nor users have access to a read-only or archived OneDrive unless an administrator takes a supported action such as assigning a licence, enabling billing, reactivating it or moving content. Do not wait for day 60. |
| Deletion of an unpaid OneDrive | From 1 July 2026, an unlicensed OneDrive that stays unpaid is subject to deletion after 365 cumulative unpaid days. Microsoft says retention policies and holds may then no longer protect it if billing is not enabled. | A forgotten account is not a safe store. Archived accounts cost money once billing for unlicensed accounts is on, so move what must stay to a SharePoint site or a licensed account. |
| OneDrive cleanup for deleted users | It does not start. Microsoft says that no other action than deleting the user from Microsoft Entra ID triggers it, "including blocking the user from signing in or removing the user's license". | The manager's email and the retention period described below belong to deleting the account, not to removing the licence. |
Microsoft's pages are not fully consistent here: the page on removing a former employee says that the OneDrive content "remains accessible to you even after 30 days", while the page on unlicensed accounts describes the read-only and archive states. Treat the stricter page as the one that applies, and check your own tenant.
What happens when you delete the user account?
Deleting the account is a soft delete: you have 30 days to restore the account before the user's data is permanently deleted. A deleted mailbox is recoverable for 30 days by default. If the account is synchronised from a local Active Directory, you delete and restore it in Active Directory, not in Microsoft 365. Deleting also stops the mail sent to the address from being received, so set up forwarding or a shared mailbox first, and do not delete an account that you converted to a shared mailbox or that has forwarding set up, because those functions still need it.
The OneDrive follows its own process, which starts when the account is deleted from Microsoft Entra ID:
- The account deletion is synchronised to SharePoint and the OneDrive is marked for deletion. The deleted user shows in the Microsoft 365 admin centre for 30 days.
- If a manager is set for the user, the manager gets an email saying they have access to the OneDrive and when it will be deleted. Without a manager, a secondary owner you named does.
- Seven days before the retention period ends, a reminder goes to the same person.
- After that, the OneDrive moves to the site collection recycle bin and stays there for 93 days. Nobody can reach shared content in it during that time, and restoring it takes PowerShell.
Because the recycle bin is not indexed, an eDiscovery search cannot find content in it, so an eDiscovery hold cannot hold it. Microsoft 365 retention policies and retention labels take precedence over this process: content can be deleted earlier than 30 days or kept longer than the retention period, and a OneDrive on an eDiscovery hold is not deleted until the hold is removed.
How do you change the OneDrive retention for deleted users, and who gets access?
The default retention period is 30 days. To change it, open the SharePoint admin centre, go to Settings, select
Retention and enter a value from 30 through 3650 days, or use the PowerShell cmdlet
Set-SPOTenant -OrphanedPersonalSitesRetentionPeriod. The setting applies to the next user that is
deleted and to users in the process of being deleted, and the count starts when the account was deleted in the
Microsoft 365 admin centre. A longer period gives a manager more time to copy files, but it does not turn a OneDrive
into an archive: the unlicensed-account rules above still apply, and a deleted user's OneDrive is treated as
unlicensed.
By default the deleted user's manager is given access automatically (access delegation). Check in the SharePoint admin centre, under More features, User profiles, Setup My Sites, that "Enable access delegation" is selected, and name a secondary owner for users who have no manager in Microsoft Entra ID. If delegation is off, or neither a manager nor a secondary owner is set, nobody gets automatic access and nobody is warned that the OneDrive will be deleted.
Should you convert the mailbox to a shared mailbox?
A shared mailbox is the usual way to keep a departed person's mail available to colleagues and to keep the address working. Microsoft's conditions are specific:
- The user mailbox needs a licence before you convert it. If you already removed the licence, add it back to convert. After the conversion you can remove it.
- Without a licence, a shared mailbox is limited to 50 GB. An Exchange Online Plan 2 licence on the shared mailbox raises the limit to 100 GB. With a licence for Plan 1 and an Exchange Online Archiving add-on you can enable auto-expanding archiving.
- A Litigation Hold or In-Place Hold on a shared mailbox needs Exchange Online Plan 2, or Plan 1 plus the Archiving add-on.
- Do not delete the user account. The shared mailbox needs it as an anchor.
- If you do not reset the password, the original username and password continue to work on the shared mailbox. For a person who has left, block the sign-in or reset the password as the former-employee guide says.
- If the account was already deleted, restore it within the 30 days, assign a licence, reset the password, wait up to 24 hours for the mailbox to be re-created, then convert it.
A shared mailbox keeps the mail where it is. It is not a copy and not a backup: an administrator who deletes the mailbox, a mistaken clean-up or a retention setting can still remove it.
What is an inactive mailbox, and when does it make sense?
An inactive mailbox is a soft-deleted mailbox that Microsoft keeps for a former employee because it is on hold when the account is deleted. It is not a feature you can switch on afterwards: the hold has to be in place before you delete the account. Microsoft describes three ways to put a mailbox on hold, and recommends the first:
- A Microsoft 365 retention policy or retention label that retains content, or retains and then deletes it. A policy that only deletes content does not make the mailbox inactive. The retention settings keep applying to the inactive mailbox, so with "retain and then delete" its items are removed after the period.
- A Litigation Hold, which Microsoft still supports but calls older technology.
- An eDiscovery case hold, which Microsoft advises against for this purpose: when the case closes or the hold is released, the inactive mailbox is deleted permanently.
Confirm with PowerShell that the hold is applied before you delete the account, because without it the mailbox is simply deleted after 30 days. Do not change the user principal name or the primary SMTP address first, or you may be unable to delete the inactive mailbox later. An inactive mailbox with an auto-expanding archive cannot be recovered or restored: Microsoft says to use content search to export from it, which is supported for eDiscovery only and cannot be used as a backup solution. Microsoft's delete-a-user page mentions Enterprise subscriptions such as Office 365 Enterprise E3 for this option, so check your licence terms. This is the right tool when you must preserve content for legal or regulatory reasons. It is not a way to get a copy back into a mailbox.
What about retention duties for business records in Germany?
Briefly, because it is a separate topic: § 147 AO and § 257 HGB require businesses in Germany to keep certain documents in an orderly way for a set number of years, and an email can be one of them if it is a commercial letter or an accounting voucher. Those periods are measured in years, and Microsoft's windows above are measured in days. The question for an offboarding is therefore which of the departing person's mails and files are such records, and where they will be kept for the whole period. The details and the periods are in email retention periods in Germany, and the difference between a backup and an archive is in backup vs. archive. This page does not give legal advice: for your case, ask a tax adviser or a lawyer.
A practical offboarding checklist
The order is the point. Everything that Microsoft deletes on a timer is decided before the first removal.
- Decide what has to be kept, and for how long. Mailbox, OneDrive, files in Teams or SharePoint that the person owned, calendar and contacts. Ask who needs it (the successor, the manager), and whether any of it is a business record or subject to a legal hold. Write down the period for each.
- Block the sign-in and secure the account. Block sign-in, revoke active sessions, and wipe or remove company data from devices, as Microsoft's former-employee guide describes. Do this at the moment of departure, separately from the data decisions.
- Back up or export what must be kept, and check it. Make sure a backup of the mailbox and the OneDrive has completed after the last working day (a scheduled run, or one started by hand), and look at its state. For records that must stay readable for years, export them to the archive or storage you use for that purpose.
- Hand over access. Check that the manager or secondary owner is set for the OneDrive, grant a successor access to the mailbox or convert it to a shared mailbox, set up forwarding or an automatic reply, and move files that a team still needs to a SharePoint site.
- Apply a hold only if you need one, and before you delete the account: a Microsoft 365 retention policy for an inactive mailbox, or a hold for a legal reason. Confirm it is applied.
- Remove the licence. Only now. If the mailbox is converted and below 50 GB, the shared mailbox needs no licence. Note the date: the 30-day mailbox clock and the OneDrive clocks start.
- Delete the account, if you do. Not for a converted mailbox or one with forwarding. Note the date, because the restore window is 30 days and the OneDrive retention period starts. Change the OneDrive retention period beforehand if 30 days is too short.
- Follow up. Put the end of each window in a calendar: 30 days for the account and mailbox, the end of the OneDrive retention period, and the 93-day recycle bin. Check once that the data you kept is where you said it would be and that it opens.
How Restow handles this
Restow is a beta. It backs up Microsoft 365 mailboxes, OneDrives and SharePoint sites through Microsoft Graph. This is what the released product does when a person leaves, and where it stops.
It notices when the account stops being backed up, and asks you
Since 0.4.7, a mailbox of a disabled account or an account without an Exchange Online licence, and a OneDrive or site that Microsoft locked (Microsoft answers every request with HTTP 423, usually because the account has no licence), no longer fails every night. Restow marks it "Not backed up: account disabled", "Not backed up: no licence" or "Not backed up: locked", with the reason, and keeps the backups it already has. It first reads amber "Not backed up any more, please confirm": that is no failure and not overdue, but the tenant's readiness stays at least yellow, never green, until an administrator confirms "Yes, intended", for one object or for a selection. Then it reads grey "Intentionally no longer backed up", with who confirmed it and when. If the account is enabled or licensed again, or the lock is lifted, Restow backs it up again by itself and the confirmation is dropped. When many objects stop within a day, one warning replaces a notice per object.
Only Exchange's answer counts: a disabled account whose mailbox Microsoft still serves, such as a shared mailbox or a former employee's mailbox, is backed up as before. A converted shared mailbox therefore stays in the backup after you remove its licence, as long as Exchange hosts it and your protection rule includes it (the option "Include shared and blocked mailboxes"). The changelog counts an inactive mailbox among the states in which Exchange Online hosts no mailbox for backup to read, so do not plan on Restow reading one. A user deleted in Microsoft 365 reads as removed from the source, "backups kept"; Restow rates it by whether its newest kept backup restores, not by its age.
What happens to the restore points that exist
The existing backups of such an object are kept. How long older restore points stay is decided by the tenant's retention policy, which never removes the newest restore point of an object, whatever the policy says; without a policy every restore point is kept. A copy in Restow is therefore a way to keep the mailbox or OneDrive as it was at the last backup, after Microsoft's windows have closed. It is not an archive with its own retention duty: see backup vs. archive.
What you can restore, and where
- Into the original mailbox: refused with a reason. The target "Original location" says, for a disabled account, that there is no mailbox to restore into and to enable the account again, for an account without a licence to assign a licence again, and for a locked OneDrive or site to lift the lock or assign a licence again.
- Into another account. "Another account" restores into a different mailbox, drive or IMAP account of the same tenant. Only tenant administrators can do this, so a successor's mailbox or a shared mailbox is a possible target.
- As a download. "Download as ZIP" gives mails as .eml and files as they are, with a checksum list; the link is valid for 24 hours.
- As an export. From the restore explorer, mail can be exported as "EML files in a ZIP" or as "MBOX", which Outlook, Thunderbird, Apple Mail and many migration tools open.
"In no backup job"
Offboarding can leave an object outside every job, for example when you take it out of a job that names its objects. Since 0.4.8, an object that no enabled backup job covers any more but that keeps a backup reads "In no backup job". It is rated only by whether its newest backup restores, not by its age, it is never overdue, and it keeps the tenant from showing green until you put it back in a job or deal with it. See verification and how Restow proves your backups can be restored.
What it does not cover
- It does not decide what to keep. Which data is a business record, and for how long, is your decision with your tax adviser. Restow's retention policy keeps what you tell it to.
- It does not manage licences, accounts or Microsoft's windows. It does not convert a mailbox, assign a licence, set the OneDrive retention period or give a manager access. Those stay in the Microsoft 365 and SharePoint admin centres.
- It cannot see Microsoft's holds. Microsoft Graph offers no way to read a retention policy or hold on a mailbox, so Restow does not know whether a mailbox will become an inactive mailbox.
- A backup is as recent as its last run. Mail that arrived after the last run and OneDrive changes since then are not in it. Let a final backup complete after the last working day, before you remove the licence.
- Backups are not a replacement for a hold. If a legal hold applies, use Microsoft's hold or the archive designed for that purpose.
See Microsoft 365 backup and restore for the details.
Frequently asked questions
What happens to a mailbox when I remove the licence?
Microsoft's page on removing a former employee says that when a licence is removed or deleted, the email, contacts and calendar are retained for 30 days and are then deleted permanently. Removing the licence does not delete the account. If you want to keep the mailbox, convert it to a shared mailbox, put it on a hold, or export or back it up before you remove the licence.
How long can I restore a deleted user account?
Microsoft's documentation gives 30 days to restore the account before the user's data is permanently deleted, and a deleted mailbox is recoverable for 30 days by default. If the account is synchronised from a local Active Directory, you delete and restore it there, not in Microsoft 365.
Does the OneDrive disappear when I remove the licence?
Not at once, but a OneDrive without a valid licence is not left alone. Microsoft states that unlicensed OneDrive accounts go into read-only mode after 60 unlicensed days and are archived after 93, and that from 1 July 2026 an unlicensed account that stays unpaid is subject to deletion after 365 cumulative unpaid days. The separate OneDrive cleanup for deleted users, with its retention period and the manager's access, starts only when the account is deleted. Do not rely on the licence being gone to protect the files: move or back them up first.
Can I change how long a deleted user's OneDrive is kept?
Yes. The default retention period is 30 days. In the SharePoint admin centre, under Settings and Retention, you can enter a value from 30 through 3650 days, or use Set-SPOTenant with -OrphanedPersonalSitesRetentionPeriod. The setting applies to the next user that is deleted and to users in the process of being deleted. Microsoft 365 retention policies and labels take precedence over it.
Who gets access to the OneDrive of a deleted user?
By default the user's manager, if one is set in Microsoft Entra ID. You can also name a secondary owner in the SharePoint admin centre, who gets access when no manager is set. Both receive an email when the OneDrive is marked for deletion and a reminder 7 days before the retention period ends. If access delegation is switched off or neither is set, nobody gets automatic access and nobody is warned.
Is an inactive mailbox a backup?
No. An inactive mailbox keeps the mailbox content of a former employee under a hold, for example a Microsoft 365 retention policy, so that it can be searched and exported for compliance and legal purposes. Microsoft says that exporting from an inactive mailbox with an auto-expanding archive with content search is for eDiscovery only and can't be used as a backup solution. It is also a feature that has to be set up before the account is deleted.
Does Restow keep backing up a mailbox after the account is disabled or loses its licence?
Not if Exchange Online no longer hosts a mailbox for it. Since 0.4.7, Restow marks such a mailbox "Not backed up: account disabled" or "Not backed up: no licence", asks an administrator to confirm that this is intended, and keeps the backups it already has. A disabled account whose mailbox Microsoft still serves, such as a shared mailbox, is backed up as before.
Sources
Read on 11 November 2026.
- Microsoft Learn: Remove a former employee - Overview. The seven steps, 30 days after deleting an account, 30 days after removing a licence, OneDrive access (page of 15 June 2026)
- Microsoft Learn: Delete a user from your organization. 30 days to restore the account, OneDrive retention period and 93 days in the recycle bin, deleted mailbox recoverable for 30 days, shared mailbox and inactive mailbox
- Microsoft Learn: OneDrive retention and deletion. When the cleanup starts, the deletion process step by step, manager and secondary owner, precedence of retention policies and holds
- Microsoft Learn: Set the OneDrive retention for deleted users. A value from 30 through 3650 days
- Microsoft Learn: Manage unlicensed OneDrive user accounts. Read-only after 60 days, archived after 93, the 365-day nonpayment clock, how deleted users' accounts are handled
- Microsoft Learn: Convert a user mailbox to a shared mailbox. Licence needed to convert, 50 GB and 100 GB limits, holds need a licence, the account must stay, the mailbox of a deleted user
- Microsoft Learn: Learn about inactive mailboxes. How a hold turns a mailbox into an inactive mailbox, retention policies versus eDiscovery holds, auto-expanding archives
- Abgabenordnung (AO), § 147 Ordnungsvorschriften für die Aufbewahrung von Unterlagen (in German). Which documents have to be kept, in an orderly way
- Handelsgesetzbuch (HGB), § 257 Aufbewahrung von Unterlagen. Aufbewahrungsfristen (in German). Which commercial documents have to be kept