Converting terminated user's OneDrive into shared onedrive

Yesh Rajawat 115 Reputation points
2023-08-02T09:35:11.4666667+00:00

I have a user who has been terminated so I want to have control over his one drive, just like we convert a mailbox into a shared mailbox is there any similar thing to do with one drive? So that the manager of the terminated user gets access to the one-drive account. I want to do this using PowerShell.

Microsoft 365 and Office SharePoint Server For business
Microsoft 365 and Office OneDrive For business Windows
Windows for business Windows Server User experience PowerShell
{count} votes

Accepted answer
  1. Zehui Yao_MSFT 5,876 Reputation points
    2023-08-07T09:33:07.39+00:00

    Hi Yesh Rajawat, per my test, currently the Set-SPOUser cmdlet is support giving access to another user. Updates are also synchronized in SharePoint admin center.

    You can run below cmdlet in SharePoint Online Management Shell:

    # Connect to SharePoint Online
    Connect-SPOService -URL https://domainname-admin.sharepoint.com
    
    # Give new owner access to terminated user's OneDrive.
    Set-SPOUser -Site https://domainname-my.sharepoint.com/personal/ownername_domainname_onmicrosoft_com -LoginName newowner
    @domain.onmicrosoft.com -IsSiteCollectionAdmin $true
    

    User's image

    User's image

    For more information you can refer to the documentation: How to Give OneDrive Access to Another User

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.

    Best Regards.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Kennedy Ngechu 75 Reputation points
    2023-08-02T10:57:13.46+00:00

    Hello, Yesh

    You can delegate OneDrive access by accessing your SharePoint admin center and navigating to the User profiles feature where you will grant a user access to the terminated user's OneDrive.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.