After a user leaves the company and their OneDrive is marked for deletion, how to ensure that their OneDrive content is inaccessible by the collaborators?

frob 4,216 Reputation points
2022-08-16T21:38:36.92+00:00

Hi there

After a user leaves the company and their OneDrive is marked for deletion, how to ensure that their OneDrive content is inaccessible by the collaborators?

Thanks.

OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,116 questions
{count} votes

1 answer

Sort by: Most helpful
  1. D. Freire 376 Reputation points
    2022-11-05T02:33:56.29+00:00

    Hello there,

    Technically you could as Sharepoint Online (SPO) admin delete the site so no user can access the content using PowerShell: https://learn.microsoft.com/en-us/powershell/module/sharepoint-online/remove-sposite?view=sharepoint-ps

    However, you can also Remove Users Profile from the OneDrive site manually or using PowerShell by following the steps described in the section https://learn.microsoft.com/en-us/sharepoint/remove-users#site-by-site-in-sharepoint

    • List item
    • You'll need to be site owner to do that and that is possible to make your admin account owner of the site and that is possible to do on https://admin.microsoft.com/ > Active user List >Select User > OneDrive tab > Create LInk option. In the case the account itself is deleted you can use the following PowerShell cmlet: Set-SPOUser -Site <URL> -LoginName <UPNofDesiredAdmin> -IsSiteCollectionAdmin $True (Reference https://learn.microsoft.com/en-us/sharepoint/restore-deleted-onedrive ; this article is somehow unrelated but has the cmlet in any case).

    I hope this helps!

    -DF

    0 comments No comments