SOLVED

Onedrive content restore for a re-created user

%3CLINGO-SUB%20id%3D%22lingo-sub-1023923%22%20slang%3D%22en-US%22%3EOnedrive%20content%20restore%20for%20a%20re-created%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1023923%22%20slang%3D%22en-US%22%3E%3CP%3EDear%20Colleagues%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDuring%20a%20user%20consolidation%2C%20I%20had%20to%20re-create%20an%20unlicensed%20O365%20account%2C%20afterwards%20I%20assigned%20a%20proper%20license%2C%20created%20a%20mailbox%2C%20so%20on...%3C%2FP%3E%3CP%3EA%20few%20hours%20later%20it%20turned%20out%2C%20that%20the%20mentioned%20account%20was%20used%20for%20the%20users's%20Onedrive%2C%20and%20because%20of%20the%20re-creation%20the%20content%20has%20lost.%3C%2FP%3E%3CP%3EIs%20there%20any%20way%20to%20restore%20the%20onedrive%20content%20what%20belongs%20to%20a%20deleted%20and%20re-created%20user%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3ELaszlo%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1023923%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1024369%22%20slang%3D%22en-US%22%3ERe%3A%20Onedrive%20content%20restore%20for%20a%20re-created%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1024369%22%20slang%3D%22en-US%22%3Eusually%20your%20URL%20will%20have%20a%201%20appended%20to%20it%20for%20the%20new%20user.%20You%20can%20go%20in%20and%20give%20yourself%20site%20collection%20admin%20rights%20to%20the%20original%20URL%20and%20then%20copy%20the%20data%20out%2C%20assuming%20the%20onedrive%20was%20had%20the%20%22Retain%20onedrive%22%20setting%20enabled.%20Otherwise%20you'll%20be%20looking%20at%20trying%20to%20restore%20assuming%20it%20was%20within%2030%20days.%20%3CBR%20%2F%3E%3CBR%20%2F%3ESo%20the%20old%20url%20would%20be%20something%20like%20%3CA%20href%3D%22https%3A%2F%2Ftenant.sharepoint.com%2Fpersonal%2Fusername_domain_org%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftenant.sharepoint.com%2Fpersonal%2Fusername_domain_org%3C%2FA%3E%2C%20the%20new%20one%20would%20be%20%2Fpersonal%2Fusername_domain_org1%2F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1024395%22%20slang%3D%22en-US%22%3ERe%3A%20Onedrive%20content%20restore%20for%20a%20re-created%20user%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1024395%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Chris%2C%20it%20was%20great%20idea.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20found%20both%20links%20by%20this%20name%20convention%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdomain-my.sharepoint.com%2Fpersonal%2Fuser_domain_hu%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdomain-my.sharepoint.com%2Fpersonal%2Fuser_domain_hu%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdomain-my.sharepoint.com%2Fpersonal%2Fuser_domain_hu1%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdomain-my.sharepoint.com%2Fpersonal%2Fuser_domain_hu1%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20the%20re-created%20user%20have%20access%20for%20the%20original%20site%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3ELaszlo%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

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

4 Replies
Highlighted
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/
Highlighted

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

Highlighted
Best Response confirmed by László Oláh (New Contributor)
Solution
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
Highlighted

You are great Chris!

Worked like a charm :)

 

Thanks,

Laszlo