Forum Discussion

Roger Roger's avatar
Roger Roger
Iron Contributor
May 14, 2018

copy files

Hi experts

one of my user has left the company and i can see his account disabled in active directory.

Now his boss asks me to copy all the users file from one drive and hand over to him. how do i achieve this.

14 Replies

  • Best way is to give access to the OneDrive location and let them download the stuff they need.

    How to connect PowerShell to Office 365

    You must download and install SharePoint Online Management Shell
    https://www.microsoft.com/en-us/download/details.aspx?id=35588
    Run Sharepoint Online Management Shell
    Run as admin

    How to grant admin access to OneDrive account

    To add access to Site collection
    Connect-SPOService -Url https://tenant-admin.sharepoint.com -credential username@domain.org
    Set-SPOUser -Site https://tenant-my.sharepoint.com/personal/targerusername_ypo_org -LoginName username@domain.org -IsSiteCollectionAdmin $true

      • Deleted's avatar
        Deleted
        The first part is connecting to your tenant and that is your admin login. The 2nd part is the user you want to add to the site as a site collection admin. So either you or the person wanting access to the files account.
    • Roger Roger's avatar
      Roger Roger
      Iron Contributor

      Hi experts

      I can see this user under deleted users.

      Home-Users-Deleted users.

      Is there any way to recover data of this user, i read earlier that contents will be preserved for one month

      • Deleted's avatar
        Deleted
        Yes follow the posts we put to assign site collection admin to yourself or the person needing permission to the OneDrive site. You have at least 30 days to do so unless you have preservation turned way up then you have longer.
      • Deleted's avatar
        Deleted
        Yeah but he disabled the user aka it moves to deleted, don't think you can use UI at that point!

Resources