SOLVED

Change owner of deleted OneDrive profile

%3CLINGO-SUB%20id%3D%22lingo-sub-1853045%22%20slang%3D%22en-US%22%3EChange%20owner%20of%20deleted%20OneDrive%20profile%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1853045%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAssuming%20I%20have%20NOT%20setup%20manager%20or%20secondary%20admin%20-%20I%20have%20deleted%20a%20user%20from%20Office356%20and%20the%20retention%20period%20isn't%20expired.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20I%20access%20%22configuration%22%20of%20the%20OneDrive%2C%20and%20add%20an%20Owner%20of%20the%20OneDrive%20so%20I%20can%20access%20it%20and%20view%20data%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20have%20thought%20that%20I%20could%20find%20it%20in%20the%20%22Manage%20User%20Profiles%22%20in%20SharePoint%20Admin%20Center%20but%20the%20user%20doesn't%20show%20up%20when%20searching.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%20Lars%20Mortensen%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1853045%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%20center%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1855774%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20owner%20of%20deleted%20OneDrive%20profile%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1855774%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F150439%22%20target%3D%22_blank%22%3E%40Lars%20Hetner%20Elkjer%20Mortensen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEasy%2C%20Just%20use%20these%20steps%20to%20assign%20a%20secondary%20owner.%26nbsp%3B%3C%2FP%3E%3CP%3E1.%26nbsp%3B%20Connect%20to%20SharePoint%20online%20PowerShell%20using%20Connect-SPOService%3C%2FP%3E%3CP%3E2.%26nbsp%3B%20Run%20%22Get-SPODeletedSite%20-IncludePersonalSite%20%7C%20FT%20url%22%20to%20get%20the%20list%20of%20deleted%20personal%20sites%3C%2FP%3E%3CP%3E4.%20Sometimes%20it%20may%20not%20appear%20in%20the%20above%20list%20but%20you%20can%20run%20this%20command%20to%20set%20a%20new%20secondary%20site%20collection%20admin.%20At%20this%20point%2C%20you%20can%20assign%20yourself%20first%20and%20see%20if%20you%20can%20access%20it.%20Then%20Assign%20to%20the%20right%20person.%3C%2FP%3E%3CP%3ESet-SPOUser%20-Site%20https%3A%2F%2Fdomain-%3CMY.SHAREPOINT.COM%3E%20-LoginName%20%3CUSERNAME%3E%20-IsSiteCollectionAdmin%20%24True%20-ErrorAction%20SilentlyContinue%3C%2FUSERNAME%3E%3C%2FMY.SHAREPOINT.COM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E5.%20Now%20try%20to%20access%20the%20above%20MySite%20URL%20and%20you%20should%20be%20able%20to%20set%20permissions%20directly%20from%20there%20too.%20To%20do%20that%20go%20to%20OneDrive%20Settings%20--%26gt%3B%20More%20Settings%20--%26gt%3B%20Site%20Collection%20Administrators%20--%26gt%3B%20Add%2FRemove%20people%20here%20as%20per%20the%20needs%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1856066%22%20slang%3D%22en-US%22%3ERe%3A%20Change%20owner%20of%20deleted%20OneDrive%20profile%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1856066%22%20slang%3D%22en-US%22%3EPerfect!%3CBR%20%2F%3EThank%20you.%3C%2FLINGO-BODY%3E
New Contributor

Hi

 

Assuming I have NOT setup manager or secondary admin - I have deleted a user from Office356 and the retention period isn't expired.

 

How can I access "configuration" of the OneDrive, and add an Owner of the OneDrive so I can access it and view data?

 

I would have thought that I could find it in the "Manage User Profiles" in SharePoint Admin Center but the user doesn't show up when searching.

 

Regards Lars Mortensen

2 Replies
best response confirmed by Lars Hetner Elkjer Mortensen (New Contributor)
Solution

@Lars Hetner Elkjer Mortensen 

Easy, Just use these steps to assign a secondary owner. 

1.  Connect to SharePoint online PowerShell using Connect-SPOService

2.  Run "Get-SPODeletedSite -IncludePersonalSite | FT url" to get the list of deleted personal sites

4. Sometimes it may not appear in the above list but you can run this command to set a new secondary site collection admin. At this point, you can assign yourself first and see if you can access it. Then Assign to the right person.

Set-SPOUser -Site https://domain-<my.sharepoint.com/personal/firstname_lastname_domain_com/_layouts/15/onedrive.aspx> -LoginName <username@domain.com> -IsSiteCollectionAdmin $True -ErrorAction SilentlyContinue

 

5. Now try to access the above MySite URL and you should be able to set permissions directly from there too. To do that go to OneDrive Settings --> More Settings --> Site Collection Administrators --> Add/Remove people here as per the needs

Perfect!
Thank you.