How to Control OneDrive Ownership & Notifications After User Deletion in Microsoft 365
This guide explains why it happens and how to control or prevent those notifications.
🔍 Symptoms
⚠️ Notifications You May Receive
- “The OneDrive of [user@domain.com] will be deleted in 30 days.” — sent to the deleted user’s manager
- “You have been granted access to OneDrive files for a deleted user.” — sent to the assigned site collection administrator
These messages are generated automatically by Microsoft 365 and cannot be disabled through standard notification settings.
🧠 Root Cause
Why This Happens — By Design
- When a user is deleted, their OneDrive enters a retention period (default: 30 days)
- Microsoft Entra ID checks the Manager attribute of the deleted user
- If a manager is defined, that manager is automatically assigned Site Collection Administrator permissions on the OneDrive and receives all lifecycle notification emails
⚠️ Current Limitations
- There is no native setting to disable these notifications globally
- There is no built-in option to redirect notifications to another mailbox before assignment occurs
- The only way to prevent manager assignment is to clear the Manager field before deletion
🛠️ Resolution Options
Option 1 — Remove Manager Before Deleting the User (Recommended)
This is the cleanest and Microsoft-recommended preventive approach. Clear the Manager field in Entra ID before proceeding with the user deletion.
✅ GUI Method — Microsoft Entra Admin Center
- Go to Microsoft Entra Admin Center → Users → All Users
- Select the target user → Click Organization
- Remove the Manager field and save
- Then proceed to delete the user
✅ Result
- No manager is automatically assigned to the OneDrive
- No notification emails are sent
- OneDrive still follows the standard 30-day retention period
Option 2 — Assign a Dedicated Admin After Deletion
If the user has already been deleted and notifications have started, you can manually override access and redirect ownership to a shared mailbox or admin account.
✅ GUI Method — Microsoft 365 Admin Center
- Go to Microsoft 365 Admin Center → Users → Deleted users
- Select the deleted user → Click Manage OneDrive
- Under Access, update “Give OneDrive access to” → enter a shared mailbox or admin account
- Save changes
✅ Result
- Ownership notification shifts to the specified mailbox
- Centralised monitoring of offboarded user data becomes easier
- Business managers are no longer receiving unwanted access
Option 3 — Immediately Delete the OneDrive Site
If retention is not required by policy, removing the OneDrive site entirely stops all further notification emails immediately.
⚠️ Before Proceeding
Ensure you have confirmed with your data governance team that no retention or compliance hold applies to this user’s data before permanently deleting their OneDrive site.
✅ GUI Method — SharePoint Admin Center
- Go to SharePoint Admin Center → More Features
- Under User Profiles, click Open → Manage User Profiles
- Search for the deleted user → open the profile → click Delete Site Collection
Connect-SPOService -Url https://yourtenant-admin.sharepoint.com # Delete the OneDrive site for the deleted user Remove-SPOSite -Identity "https://yourtenant-my.sharepoint.com/personal/user_domain_com" -Confirm:$false
🔎 Optional — Identify All Orphaned OneDrive Sites
💡 Proactive Management
Use the following command to find all OneDrive sites with no assigned owner.
Get-SPOSite -IncludePersonalSite $true -Limit All | Where-Object {$_.Owner -eq $null}
💡 Best Practices & Recommendations
- Always clear the Manager field before bulk user offboarding — especially in automated workflows or large-scale deprovisioning
- Use a dedicated compliance or admin mailbox as the OneDrive access recipient instead of relying on business managers
- Align OneDrive retention policies with your organisation’s data governance and legal hold strategy before deleting sites
- Automate the offboarding process using Microsoft Graph API and provisioning scripts to ensure the Manager field is cleared consistently
✅ Key Takeaway
If you are dealing with frequent unexpected notifications during user offboarding, centralising OneDrive ownership to a dedicated compliance mailbox (Option 2) combined with clearing the Manager field before deletion (Option 1) is the most reliable long-term strategy.
📚 References & Further Reading
- 🔗 OneDrive retention and deletion in Microsoft 365 — Microsoft Learn
- 🔗 Manage user profiles in SharePoint Online — Microsoft Learn
- 🔗 Delete a site collection in SharePoint Online — Microsoft Learn
- 🔗 Remove a former employee from Microsoft 365 — Microsoft Learn
- 🔗 Remove-SPOSite — SharePoint Online PowerShell — Microsoft Learn
