HomeAboutAll Posts

Archive Unlicensed OneDrive Accounts Using M365 Archive Feature

By Denis Molodtsov
Published in OneDrive
June 01, 2026
8 min read
Archive Unlicensed OneDrive Accounts Using M365 Archive Feature

Table Of Contents

01
About Microsoft 365 Archive for OneDrive
02
Pricing
03
Prerequisites
04
Enable billing for unlicensed OneDrives
05
Lifecycle of an unlicensed OneDrive
06
Lifecycle scenarios at a glance
07
The OneDrive accounts report
08
Reading the downloaded CSV
09
Patterns from real data
10
How to recover an archived OneDrive
11
Useful PowerShell
12
Questions and Answers
13
Conclusion
14
Related
15
Sources

About Microsoft 365 Archive for OneDrive

ℹ️ This is the third article in my Microsoft 365 Archive series. See also: Archive SharePoint Online Sites Using M365 Archive Feature and Archive SharePoint Files Using M365 Archive Feature.

ℹ️ Microsoft started enforcing the unlicensed-OneDrive lifecycle on January 27, 2026. The rollout is gradual, so some tenants are still catching up.

When a Microsoft 365 user loses their license or gets deleted from Entra ID, their OneDrive doesn’t disappear. It runs through a built-in lifecycle that ends in re-activation, archival, or deletion. OneDrive content from former employees often outlives the employee by years, and most admins don’t realize Microsoft is now archiving it automatically. You end up with three choices: re-license (free), pay to reactivate, or let it delete.

Pricing

Same archive model as the site-level and file-level features:

  • $0.05/GB/month storage for every unlicensed OneDrive that has been unlicensed for more than 93 days. Billed across the whole archived population, not just one account.
  • $0.60/GB one-time to reactivate a specific archived account. Reactivation grants 30 days of active access, then the account is re-archived.
  • Free re-license if the user still exists in Entra ID.

Rates are Microsoft’s published rates and are subject to change.

Prerequisites

You need pay-as-you-go billing enabled and an Azure resource group linked to your tenant. Same setup as for the site-level and file-level archives, so I won’t go deep on this. Short version:

  1. Microsoft 365 Admin center > Setup > Activate pay-as-you-go services > Billing. Link an Azure subscription and resource group.

    Activate pay-as-you-go services
    Activate pay-as-you-go services

    Manage billing
    Manage billing

    Connect billing to Azure
    Connect billing to Azure

  2. Same page > Settings > Storage > Archive. Turn the service on.

    Activate Archive
    Activate Archive

Enable billing for unlicensed OneDrives

This is the OneDrive-specific switch. Under Manage archived unlicensed OneDrive accounts, flip the Status toggle to On.

Manage archived unlicensed OneDrive accounts toggle
Manage archived unlicensed OneDrive accounts toggle

This is the third toggle in the M365 Archive admin pane. The other two control site-level archive and file-level archive (covered in the previous two articles). They are independent. Turning this one on does not affect the others.

⚠️ Once this toggle is on, the meter runs against every account in the tenant that has been unlicensed for more than 93 days, including ones that have been sitting unlicensed since 2023. Triage your report first, enable billing second.

Lifecycle of an unlicensed OneDrive

The clock starts when the license is removed or the owner is deleted from Entra ID. The milestones are:

  • Day 60. OneDrive becomes read-only.
  • Day 93. OneDrive is archived. Content is unreachable from Microsoft 365 unless billing is enabled or the user is re-licensed.
  • End of retention (deleted users only). The OneDrive moves to the tenant recycle bin.
  • Recycle bin + 93 days. Permanent deletion.

The day-93 archival happens regardless of whether Microsoft 365 Archive is enabled in the tenant. Per Microsoft’s FAQ: “Unlicensed OneDrive accounts will get enforced no matter what, including being put into read-only mode and eventually Archive.”

ℹ️ For a deleted user, the total time from Entra ID deletion to permanent loss is retention period + 93 days. With the default 30-day retention that’s ~123 days. With a 180-day retention that’s ~273 days, or roughly nine months. The OneDrive is still recoverable from the recycle bin during the final 93 days, just not from the unlicensed-accounts report.

⚠️ M365 Archive (site and file archive) and the unlicensed-OneDrive lifecycle are two separate toggles in the same admin section. They are unrelated. Confusing them is the most common mistake I see.

Lifecycle scenarios at a glance

The same OneDrive can end up in very different places depending on what you do on day zero. The table below walks six common offboarding scenarios across the timeline.

ScenarioWhat you doDay 30Day 60Day 93Day 123Day 180Day 273
A. License stripped, Entra account keptRemove license onlyActiveRead-onlyArchivedArchivedArchivedArchived (forever)
B. User deleted, default 30-day retentionDelete in Entra IDRecycle binRecycle binRecycle binPermanently deletedGoneGone
C. User deleted, 180-day retentionDelete in Entra IDActiveRead-onlyArchivedArchivedRecycle binPermanently deleted
D. User deleted, Purview retention policy on userDelete in Entra ID + holdActiveRead-onlyArchivedArchivedArchived (locked)Archived (locked, no deletion)
E. License stripped today, user deleted laterTwo-step offboardingRead-only path runsRead-onlyArchivedArchived (retention has not started)ArchivedRetention starts when Entra delete happens
F. Duplicate OneDrive provisioned for transferred userInternal transferActiveRead-onlyArchivedArchivedArchivedArchived (forever)

A few things worth pulling out:

  • A and F are the “forever archived” states. Both have an active identity in Entra ID, so the deletion path never starts. This is why a report often surfaces accounts that have been unlicensed since 2023.
  • B is the surprise. With the default 30-day retention setting, the OneDrive is in the recycle bin before it even goes read-only. The whole read-only / archive choreography is moot.
  • C is what most enterprises run. A longer retention gives you the full sequence and roughly nine months of recoverability.
  • D shows that a Purview retention policy blocks deletion entirely. Per Microsoft’s docs: “if the account is subject to a retention policy, the unlicensed account can’t be deleted, and the administrator receives an error message.”
  • E is the trap. The 60/93-day clock counts from license removal, but the retention timer only starts at Entra deletion. If those happen months apart, the deletion date in the report is way out past the 60/93 markers.

Recovery options by current state

When you find an account in the report, the question is: how do I get it back, and what does that cost?

Current stateIdentity in Entra?Recovery actionCostTime
Active (day 0-59)YesRe-license the userFreeInstant
Read-only (day 60-92)YesRe-license the userFree24-48 hours
Archived (day 93+)YesRe-license the userFree24-48 hours
Archived (day 93+)No (user deleted)Paid reactivation$0.60/GBUp to 24 hours, 30-day window
Archived, Purview holdEithereDiscovery exportFreeDepends on case
Recycle bin (within 93 days)-Restore in SPO admin centerFreeInstant
Permanently deleted-None--

💡 Every “identity in Entra” row uses the free re-license path. That’s why the Active user with no license bucket in the report is always the first one to attack: zero cost, zero billing setup, zero ticket to Microsoft.

The OneDrive accounts report

You manage everything from SharePoint admin center > Reports > OneDrive accounts.

OneDrive accounts report with the View more details button
OneDrive accounts report with the View more details button

The summary view bins the unlicensed population by the reason it’s still around:

  • Retention period. User has been deleted from Entra ID. The retention timer is running down.
  • Retention policy. A Microsoft Purview retention policy or legal hold is preserving the content.
  • Active user with no license. Identity still exists in Entra ID, only the license was removed. The most actionable category.
  • Duplicate accounts. Usually a transferred employee who got a second OneDrive provisioned.
  • Restored from recycle bin. A OneDrive that was brought back.
  • Active lock on account. A hold is in place.
  • Previous lock or other state change. Catch-all for everything else.

Click View more details to drill into the per-account list:

Unlicensed OneDrive accounts detailed list
Unlicensed OneDrive accounts detailed list

The toolbar has two important buttons: Enable billing turns on the pay-per-GB meter, and Download report exports the same data as a CSV.

Reading the downloaded CSV

The CSV has eight columns:

ColumnWhat it tells you
URLThe OneDrive personal site URL.
Owner emailWho used to own this.
Storage used (GB)What the OneDrive is consuming. This is what you’d be billed on.
Unlicensed due toOwner deleted from Entra ID or License removed by admin.
Deletion blocked byThe reason it’s still around (Retention period, Owner active in Entra ID, Previous lock, and so on).
Unlicensed onWhen the license went away.
Deletion scheduled onWhen the OneDrive will move to the recycle bin. Blank if not scheduled.
Account provisioned for (UPN)UPN of the original owner. Filled in when the identity still exists. Empty when the user is gone.

Open it in Excel and group by Unlicensed due to and Deletion blocked by. Rows with License removed by admin + Owner active in Entra ID are the cheap wins.

Patterns from real data

After staring at a production CSV with about 90 unlicensed OneDrives, a handful of rules popped out.

Rule 1: Two unlicensing routes, two very different fates

The Unlicensed due to and Deletion blocked by columns combine into a state:

Unlicensed due toDeletion blocked byDeletion scheduled onWhat it means
License removed by adminOwner active in Entra ID(blank)Identity exists. Re-license is free. Sits archived indefinitely otherwise.
Owner deleted from Entra IDRetention period(a future date)Retention timer running. Capture data before the date or let it delete.
Owner deleted from Entra IDRetention policy(blank)Purview policy is preserving the content. Will not delete while the hold is active.
Owner deleted from Entra IDPrevious lock or other state change(blank)Something else is blocking deletion. Manual review required.
Duplicate accountOwner active in Entra ID(blank)A second OneDrive exists for the same user. Decide which one keeps the data.

The decisive signal is the Deletion scheduled on column. If it’s blank, the OneDrive is not on a path to automatic deletion.

Rule 2: Don’t compute the deletion date from “Unlicensed on”

I saw accounts unlicensed on 2025-11-11 with a deletion date of 2026-06-28. That’s 229 days, not the 180 the tenant retention was set to. The retention timer starts when the user was deleted from Entra ID, not when the license was removed. If you see a wide gap between Unlicensed on and Deletion scheduled on, the account sat license-less for a while before someone finally deleted the Entra user.

Rule 3: A cluster of identical timestamps is a batch off-boarding

Dozens of rows sharing the same Unlicensed on timestamp down to the hour is not coincidence. It’s an HR-driven bulk action: a department wind-down, a contractor batch, an acquired company merging. They’ll also share a Deletion scheduled on date, which means a large chunk of storage frees up on a single day. If billing is on, a noticeable monthly charge disappears that day too.

Rule 4: Sort by storage and triage the top 10

In any real report the top 10 by Storage used (GB) account for the bulk of the bill. Two patterns dominate:

  1. Deleted user, large mailbox, retention timer running. If anything matters to the business, capture it before the deletion date.
  2. License removed, owner still active. Free re-license. The hardest part is figuring out whether the original owner is the right person to give the license back to.

Stories from the report

Two cases I had to investigate that aren’t immediately obvious from the bins.

The duplicate that nobody noticed

One row in my production report stood out: an account flagged as Duplicate account holding more than 20 GB, unlicensed since 2024, owner still active in Entra ID. The active OneDrive for the same user was much smaller.

What happened: the user changed roles, the new role provisioned a fresh OneDrive at a slightly different URL, and the original one was orphaned. The duplicate isn’t on a deletion path because the identity is active. It will keep sitting there. The fix is a manual decision: copy the contents to the active OneDrive, then delete the duplicate.

The deletion-blocked unicorns

Two rows had Unlicensed due to = Owner deleted from Entra ID but Deletion scheduled on = (blank) and Deletion blocked by = Previous lock or other state change.

Translation: the user is gone, the retention timer should be ticking, but something else is holding the OneDrive in place. Usually a Purview hold the SPO admin didn’t know about, a legal-hold flag from years ago, or a sync conflict from a tenant migration. These accounts will not delete on their own. The lesson: treat the Previous lock or other state change bucket as a manual worklist.

How to recover an archived OneDrive

Select one account in the report and the toolbar shows Delete and Reactivate.

Reactivate button on a selected unlicensed OneDrive
Reactivate button on a selected unlicensed OneDrive

The page header spells out the policy in one sentence: “Unlicensed OneDrive accounts are automatically archived after 93 days of being unlicensed. Archived accounts require billing enablement to be reactivated.”

The recovery path depends on whether the original identity is still in Entra ID. See the Recovery options table above for the full matrix. Two quotes from Microsoft’s FAQ that come up the most:

  • “If the archived account has an associated user, the IT admin can give the user a valid license and the account automatically reactivates within 48 hours… without any reactivation fee… even if unlicensed OneDrive account billing isn’t enabled.” (FAQ #12)
  • “We honor eDiscovery holds to their full extent and aren’t introducing any new charges for eDiscovery searches or exports.” (eDiscovery still reaches archived content for free.)

Useful PowerShell

powershell
Connect-SPOService -Url https://yourtenant-admin.sharepoint.com
# All personal sites (OneDrives)
$od = Get-SPOSite -IncludePersonalSite $true -Limit All `
-Filter "Url -like '-my.sharepoint.com/personal/'"
# Tenant retention setting for deleted-user OneDrives (default 30)
(Get-SPOTenant).OrphanedPersonalSitesRetentionPeriod
# Change it (range: 30 to 3650 days)
Set-SPOTenant -OrphanedPersonalSitesRetentionPeriod 365

Find and restore deleted OneDrives from the recycle bin

When retention expires, the OneDrive moves to the tenant recycle bin for a final 93 days. You can list them, sort by how much time is left, and restore.

powershell
Connect-SPOService -Url https://yourtenant-admin.sharepoint.com
# List every deleted OneDrive in the tenant recycle bin
# with a computed "days remaining before permanent deletion"
Get-SPODeletedSite -IncludePersonalSite -Limit All |
Where-Object { $_.Url -like '*-my.sharepoint.com/personal/*' } |
Select-Object Url, DeletionTime, StorageQuota,
@{ Name = 'DaysLeft';
Expression = { [int](93 - ((Get-Date) - $_.DeletionTime).TotalDays) } } |
Sort-Object DaysLeft |
Format-Table -AutoSize

Restore a single OneDrive by URL:

powershell
Restore-SPODeletedSite `
-Identity https://yourtenant-my.sharepoint.com/personal/jdoe_yourtenant_com

Or pipe a filtered list into the restore cmdlet to bulk-recover:

powershell
Get-SPODeletedSite -IncludePersonalSite -Limit All |
Where-Object {
$_.Url -like '*-my.sharepoint.com/personal/*' -and
$_.DeletionTime -gt (Get-Date).AddDays(-30)
} |
Restore-SPODeletedSite -Confirm:$false

⚠️ A restored OneDrive comes back with no owner if the original Entra ID user is gone. Add yourself (or an investigator account) as a site admin before you can browse the contents:

powershell
Set-SPOUser -Site <restored-url> -LoginName admin@yourtenant.onmicrosoft.com -IsSiteCollectionAdmin $true

PnP.PowerShell equivalents:

powershell
Connect-PnPOnline -Url https://yourtenant-admin.sharepoint.com -Interactive
Get-PnPTenantDeletedSite -IncludeOnlyPersonalSite
Restore-PnPTenantDeletedSite `
-Url https://yourtenant-my.sharepoint.com/personal/jdoe_yourtenant_com

Questions and Answers

What if I set OrphanedPersonalSitesRetentionPeriod to a very high number?

You can set it anywhere from 30 to 3,650 days (about 10 years). A deleted user’s OneDrive will sit on the deletion-blocked list for that whole window. But “blocked from deletion” is not the same as “accessible.” The day-60 read-only and day-93 archive milestones fire regardless. With billing on, you pay $0.05/GB/month for the entire retention window.

Other gotchas:

  • The setting is tenant-wide. You can’t set it per-user.
  • Changing it recalculates Deletion scheduled on for every in-flight account. Bumping it up extends the dates. Lowering it can make accounts suddenly eligible for deletion.
  • Re-licensing only works while the Entra user object exists (including the 30-day Entra soft-delete window). After Entra hard-delete, paid reactivation is the only path.
  • If you really want years of guaranteed preservation, a Microsoft Purview retention policy is cleaner because it survives changes to the SPO setting.

Does this policy apply to my tenant?

Commercial and Enterprise tenants are in scope. Education tenants with more than 50% EDU licenses, GCC, and DoD tenants are excluded.

Can unlicensed OneDrives use my unused SharePoint pooled storage?

No. Per Microsoft FAQ #2: “They’re independent.” Archived unlicensed accounts are billed against their full consumed size even when the tenant has SharePoint headroom.

Can I reactivate multiple archived accounts at once?

Not from the UI. You select one account, click Reactivate, and pay the per-GB fee. Reactivation gives 30 days of active access before the account re-archives.

How big can the bill get?

Microsoft’s worked example: 100 unlicensed accounts at 1 TB each (100 TB total) is $5,120 / month at $0.05/GB. Reactivating one of those 1 TB accounts is $614.40 one-time. Real-world unlicensed footprints in most tenants are orders of magnitude smaller, but the math scales linearly.

Conclusion

OneDrive archival is happening whether you opt in or not. The toggle just decides whether the archived content stays reachable. The cheapest cleanup pattern is always the same: filter the report for Active user with no license, re-license the ones that should come back, and let the rest run their lifecycle.

Sources


Tags

ArchiveOneDriveMicrosoft 365SAMSharePoint Premium

Share

Previous Article
Archive SharePoint Files Using M365 Archive Feature
Denis Molodtsov

Denis Molodtsov

Microsoft 365 Architect

Related Posts

Migrating File Shares to SharePoint - Operational Risks and Application Incompatibilities
Migrating File Shares to SharePoint - Operational Risks and Application Incompatibilities
April 12, 2026
6 min

Quick Links

AboutAll Posts

Social Media