How to Manage Unlicensed OneDrive Accounts?
When an employee leaves your organisation, their Microsoft 365 licence is often removed straight away.
But their OneDrive data doesn’t disappear immediately.
If unlicensed OneDrive accounts aren’t managed properly, files can either be deleted too soon or kept longer than necessary, creating security, compliance, and storage risks.
This guide explains:
- How administrators can build a reliable process
- What an unlicensed OneDrive account is
- What changed in the 2025 Microsoft policy update
- The safest ways to manage these accounts

What Is an Unlicensed OneDrive Account in Microsoft 365?
A OneDrive account becomes unlicensed when a user no longer has a Microsoft 365 licence assigned.
This usually happens when:
- An employee leaves the organisation
- A student leaves a school
- A licence is reassigned to another user
- An account is disabled
When the licence is removed, the user loses access to OneDrive. However, their files may remain temporarily in the system.
At that point, a deletion timer begins.
Unless administrators take action, the data will eventually be removed.
Planning ahead ensures important files are protected and organisational policies are followed.
OneDrive Licensing Changes Introduced in January 2025
Microsoft introduced changes in January 2025 that affect how unlicensed OneDrive accounts are handled.
Previously, data was typically retained for 30 days after a licence was removed.
Now, the outcome depends on the retention policies configured in Microsoft Purview.
If retention policies are in place, OneDrive data can remain stored for longer periods.
If no policies exist, the data associated with the unlicensed account will be deleted after the standard retention window.
Because of this change, organisations must ensure their data retention and offboarding processes are clearly defined.
Microsoft has published detailed guidance on managing unlicensed OneDrive user accounts, including when accounts move to read-only mode, when archiving happens, and what administrators need to review before data is lost.
What Happens to OneDrive Data After a Licence Is Removed?
When a Microsoft 365 licence is removed from a user:
- The user immediately loses access to OneDrive.
- Their account becomes unlicensed.
- A deletion timer begins (typically 30 days).
- If retention policies exist, the files may be preserved longer.
Without proper oversight, important business data can be permanently deleted.
Administrators should always review retention policies before removing licences from users who may hold important files.
The Risks of Ignoring Unlicensed OneDrive Accounts
Failing to manage unlicensed accounts can cause several problems.
- Permanent data loss
If the retention period expires, files are deleted and cannot be recovered. - Higher storage costs
Inactive accounts can continue consuming storage unnecessarily. - Security risks
Old accounts may still contain sensitive information. - Compliance issues
Some organisations must retain files for legal or regulatory reasons.
Managing these accounts properly ensures your Microsoft 365 environment remains secure and compliant.
3 Ways to Manage Unlicensed OneDrive Accounts
Administrators have several options when dealing with unlicensed OneDrive accounts.
The best choice depends on whether the files need to be retained, transferred, or permanently removed.
1. Reassign a Licence to the Account
If the user may return or their files are still needed, you can simply reassign a Microsoft 365 licence.
This restores the OneDrive account and prevents any data from being deleted.
This option is quick but consumes an available licence.
2. Delete the OneDrive Account
If the files are no longer required, the account can be removed completely.
Before doing this, administrators should:
- confirm the files are not required
- check retention policies
- confirm with managers or data owners
Once deleted, the files cannot be recovered.
Deleting unused accounts helps maintain a clean and efficient environment.
3. Archive the OneDrive Data
If you may need the data later, archiving is often the safest option.
Microsoft 365 archiving tools allow administrators to move files from inactive accounts into long-term storage.
Archived data:
- uses less storage
- remains accessible if needed
- protects organisations from accidental deletion
This approach works well for organisations that manage large numbers of offboarded users.
How to Manage Unlicensed OneDrive Accounts in Microsoft 365 (3 Steps)
Administrators can manage unlicensed accounts using tools available within Microsoft 365.
Following a simple process helps ensure no accounts are overlooked.
Step 1: Identify Unlicensed OneDrive Accounts
Start by locating accounts affected by licence changes.
This can be done through reports in the Microsoft 365 Admin Center or SharePoint Admin Center.
Key things to check include:
- users without licences but with stored data
- accounts within the deletion waiting period
- retention policies protecting specific accounts
- duplicate or incorrectly configured accounts
Regular reporting helps administrators stay ahead of potential data loss.
Step 2: Establish a Clear Management Workflow
Once accounts are identified, administrators should decide how each account will be handled.
Questions to consider include:
- Do the files need to be retained?
- Should another user receive access?
- Are legal or compliance rules involved?
- Can the account safely be deleted?
Creating a documented workflow ensures consistent handling of all offboarded users.
Step 3: Automate the Process Where Possible
Managing accounts manually does not scale well.
Automation helps reduce errors and administrative effort.
Options include:
PowerShell scripts
Automate detection and management of inactive accounts.
Policy-based retention
Use Microsoft Purview retention policies to automatically protect data.
Offboarding procedures
Integrate OneDrive management into HR or IT offboarding processes.
Automation ensures no important data is missed.
How to Find Unlicensed OneDrive Accounts Using PowerShell
Administrators can also identify unlicensed OneDrive accounts using PowerShell.
This approach is useful in larger Microsoft 365 environments where manual checks are difficult.
Example workflow:
- Connect to Microsoft 365 using the Microsoft Graph PowerShell module.
- Retrieve users without assigned licences.
- Cross-reference those users with OneDrive storage accounts.
- Review which accounts still contain data.
Example command:
Get-MgUser -Filter "assignedLicenses/$count eq 0" -ConsistencyLevel eventual -CountVariable unlicensedUsers
PowerShell reporting makes it easier to automate monitoring and ensures unlicensed accounts are identified before data is deleted.
Need Help Managing Microsoft 365 Offboarding?
Managing user lifecycle, licences, and OneDrive retention can quickly become complex.
Our Microsoft 365 Support service helps organisations manage:
- user offboarding
- OneDrive retention policies
- licence management
- Microsoft 365 governance
- data protection and compliance
Learn more about our Microsoft 365 support services.
Best Practice: Include OneDrive in Your Offboarding Process
Managing unlicensed OneDrive accounts should be part of a structured employee offboarding process.
A typical Microsoft 365 offboarding workflow includes:
- Disable user sign-in.
- Transfer ownership of important files.
- Apply retention policies if required.
- Archive or export OneDrive data.
- Remove the Microsoft 365 licence.
Including OneDrive management in offboarding ensures:
- important files are preserved
- compliance requirements are met
- unnecessary storage costs are avoided
Organisations that automate this process significantly reduce the risk of accidental data loss.
Need Help Managing Microsoft 365 Offboarding?
Managing user lifecycle, licences, and OneDrive retention can quickly become complex.
Our Microsoft 365 Support service helps organisations manage:
- user offboarding
- OneDrive retention policies
- licence management
- Microsoft 365 governance
- data protection and compliance
Learn more about our Microsoft 365 support services.
Frequently Asked Questions
Do administrators get notified when an account becomes unlicensed?
No. Microsoft 365 does not send advance notifications when a licence is removed.
Once the licence is removed, the deletion timer begins immediately.
Administrators must monitor user accounts and manage offboarding processes carefully.
What does the new OneDrive policy mean for administrators?
The 2025 policy change means administrators must rely on retention policies rather than assuming a fixed retention window.
Without configured policies, files may be permanently deleted after the standard period.
How do I find unlicensed OneDrive accounts in Microsoft 365?
You can identify them using reports in the Microsoft 365 Admin Center or by running PowerShell scripts to locate users without licences who still have OneDrive data.
How does this affect education (EDU) tenants?
The policy applies to education environments in the same way.
When students or staff leave, their accounts can become unlicensed and eventually deleted unless retention policies protect their files.
Schools should define clear offboarding procedures to protect important data.
Can I delete an unlicensed account without restoring it from archive?
Yes. If the data is no longer required, the account can be deleted without restoring archived data.
However, administrators should always confirm the files are not required before deletion.
Can an archived account be relicensed later?
Yes. If access is needed again, administrators can restore the archived data and assign a new Microsoft 365 licence.
Once the licence is reassigned, the OneDrive account becomes active again.
