Forum Discussion
László Oláh
Nov 21, 2019Copper Contributor
Onedrive content restore for a re-created user
Dear Colleagues,
During a user consolidation, I had to re-create an unlicensed O365 account, afterwards I assigned a proper license, created a mailbox, so on...
A few hours later it turned out, that the mentioned account was used for the users's Onedrive, and because of the re-creation the content has lost.
Is there any way to restore the onedrive content what belongs to a deleted and re-created user?
Thanks,
Laszlo
- Doubtful if it's a new Azure AD user all together which seems likely in this case so it wouldn't have the same userID saved to the site. You would have to go use the set-sposite command and add permissions to the site for that user, or copy the content yourself over to the new site.
Link for setting permissions. https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/set-spouser?view=sharepoint-ps
- usually your URL will have a 1 appended to it for the new user. You can go in and give yourself site collection admin rights to the original URL and then copy the data out, assuming the onedrive was had the "Retain onedrive" setting enabled. Otherwise you'll be looking at trying to restore assuming it was within 30 days.
So the old url would be something like https://tenant.sharepoint.com/personal/username_domain_org, the new one would be /personal/username_domain_org1/- László OláhCopper Contributor
Thanks Chris, it was great idea.
I found both links by this name convention:
https://domain-my.sharepoint.com/personal/user_domain_hu
https://domain-my.sharepoint.com/personal/user_domain_hu1
Does the re-created user have access for the original site?
Thanks,
Laszlo
- Doubtful if it's a new Azure AD user all together which seems likely in this case so it wouldn't have the same userID saved to the site. You would have to go use the set-sposite command and add permissions to the site for that user, or copy the content yourself over to the new site.
Link for setting permissions. https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/set-spouser?view=sharepoint-ps