How to Control OneDrive Ownership & Notifications After User Deletion in Microsoft 365

📄 Article

How to Control OneDrive Ownership & Notifications After User Deletion in Microsoft 365

When a user account is deleted in Microsoft 365, their OneDrive for Business site does not disappear immediately. Instead, Microsoft automatically assigns the deleted user’s manager (from Entra ID) as the temporary site collection administrator. This behavior often triggers unexpected notification emails and access assignments — particularly in large environments or compliance-sensitive setups.

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

1

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 CenterUsers → 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
2

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 CenterUsers → 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
3

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 CenterMore Features
  • Under User Profiles, click OpenManage User Profiles
  • Search for the deleted user → open the profile → click Delete Site Collection
PowerShell — SharePoint Online

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.

PowerShell — SharePoint Online

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

Leave a Comment

Your email address will not be published. Required fields are marked *