What this check looks at
Checks that the OneDrive of a deleted account is kept for at least 90 days before Microsoft deletes it (the default is 30).
When a person’s account is deleted, Microsoft keeps their OneDrive for a set number of days before deleting it for good. During that time the files can still be reached by the person’s manager or an administrator; afterwards they cannot be recovered. Microsoft’s default is 30 days.
The check reads the SharePoint settings and passes when a deleted user’s OneDrive is kept for 90 days or more. It fails when the period is shorter, and reports not checked when the setting was not returned.
Why it matters
When someone leaves and their account is deleted, their OneDrive goes with it after the retention period. Thirty days is often too short for a manager to find the files that only lived there, and once it is gone it cannot be brought back.
Files that only ever lived in a leaver’s OneDrive (a working copy of a contract, notes for a client, the spreadsheet everyone used) are often missed until someone asks for them weeks later. Thirty days is short for that question to come up.
A longer period costs nothing extra in storage for most tenants and changes nothing for current staff. It does not replace a retention policy or a backup, but it gives the offboarding process room to work.
How to fix it
Where: SharePoint admin centre → Settings → OneDrive retention
Before you start
- Nothing to prepare: the change only applies to OneDrives of accounts deleted from now on.
Step by step
- See the current period. In the SharePoint admin centre open Settings → OneDrive retention and note the number of days, or run Get-SPOTenant | Select OrphanedPersonalSitesRetentionPeriod.
- Choose a period. Agree a period with the business that covers how long it takes to notice missing files after someone leaves; 90 days is a sensible minimum, and up to 3,650 days is allowed.
- Set the period. Enter the number of days under "Days to retain a deleted user’s OneDrive" and save, or run Set-SPOTenant -OrphanedPersonalSitesRetentionPeriod 90 (or more).
- Use it when people leave. Make the offboarding checklist give the leaver’s manager access to their OneDrive before the account is deleted, so the files are found while they are still there.
- Confirm the change. The OneDrive retention page shows the new number of days. The next assessment passes.
With PowerShell
Set-SPOTenant -OrphanedPersonalSitesRetentionPeriod 90
What users will notice
A leaver’s OneDrive stays available to their manager for longer before Microsoft deletes it.
How to confirm it worked
SharePoint admin centre → Settings → OneDrive retention shows 90 days or more.
Frameworks and controls
This check maps to controls in 6 frameworks. Passing it is evidence that the setting is in place, not a certification against any of them.
| Framework | Control |
|---|---|
| NCSC CAF | B3.c Stored data |
| Zero Trust | Data |
| ISO 27001:2022 | A.5.33 Protection of records |
| CIS Controls v8.1 | 3.4 Enforce data retention (IG1) |
| NIST CSF 2.0 | PR.DS-11: Backups of data are created, protected, maintained, and tested |
| NCSC 10 Steps | Data security |
The framework mappings were last checked against the published standards in October 2026.
Microsoft’s documentation
- OneDrive retention and deletion (Microsoft Learn)