pilote365.fr, back to homeby Pierre-DevOps Solutions

OneDrive recovery after a departure

An employee has left. Some of your documents stayed with them.

In Microsoft 365, each person has their own storage space, OneDrive. Over time, quotes, contracts or organisation files often end up there rather than in a shared folder. When the person leaves, you need to recover them before they disappear.

If their account has been deleted, time is running out

By default, the OneDrive is kept for 30 days after the account is deleted. After that, it remains for another 93 days in a deleted state, during which a SharePoint administrator can restore it with PowerShell.

With the default settings, that is therefore about four months before permanent deletion, subject in particular to any Microsoft 365 retention policies in place.

The first step is therefore not to look for the documents: it is to extend the retention period. It can be raised from 30 up to 3650 days, and this setting also applies to OneDrives already being deleted: it catches what was about to be lost.

Source: Microsoft documentation, Restore a deleted OneDrive

Two very different situations

The simple case

The account still exists, even if blocked

An administrator can access the person's space from the admin console, without knowing their password. The operation is recorded in the logs: you can see who accessed what, and when.

The tricky case

The account has been deleted

The person's record disappears from the console, and with it direct access to their space. You then have to use PowerShell to reach the OneDrive, or even restore it. And the roughly four-month clock has already started.

Good to know: files stored in a personal OneDrive, linked to a Hotmail or Outlook.com account, do not belong to the business. They cannot be recovered by your Microsoft 365 administrator.

The trap almost nobody knows about

A document may have been shared through an open link for everyone: anyone with that link can open it, without signing in.

In a demonstration environment I tested, an “Anyone with the link” sharing link kept working after the file was moved to SharePoint. The file then appeared to be in a private space, without that link being immediately visible in the same place in the admin interface. I checked it three times, including once from a phone on mobile data, outside the company network.

That is why I list the shares before the documents are transferred, and then check the permissions at their new location.

How the recovery works

  1. Your written requestThe director states in writing the account concerned, the folders sought and the person to whom the files should be handed.
  2. Temporary access, limited to the strict minimumYou create a temporary account with only the SharePoint Administrator role. No other right is requested.
  3. Secure the deadline firstIf the account has been deleted, I first extend the retention period, so that nothing more is destroyed during the recovery.
  4. Your files never leave your Microsoft 365Access is given to the director, or the folders are moved to a SharePoint site they designate. Shares are listed before the transfer, and permissions checked at the new location.
  5. A clean closeThe OneDrive is put back into deletion or permanently deleted, according to your written decision. The temporary account is deleted, and you receive a short report of what was done.

How much does it cost

Recovery falls under Troubleshooting. The level is confirmed in writing before any intervention.

Simple€90VAT not applicable

Files still in the recycle bin, or restoring the OneDrive to an earlier state, up to 30 days back.

Complex€250VAT not applicable

OneDrive of a deleted account, restored then handed to the director.

Urgent+ 50%on the relevant level

Priority handling, working days, subject to availability.

A departure in your organisation?

Describe the situation in writing: date of departure, account still active or deleted, folders sought, and to whom the files should be handed. I will reply by email with the level of intervention and its price.

Describe my situation

The findings on this page were verified on a demonstration Microsoft 365 environment. No client data is involved.