To grant access rights to other user’s OneDrive, open Powershell as admin and execute:
Connect-SPOService -Url “https://mydomain-admin.sharepoint.com“
Set-SPOUser -Site “https://mydomain-my.sharepoint.com/personal/user01_domain_com” -LoginName “user02@domain.com” -IsSiteCollectionAdmin $true
Note:
- user must be active or within 30 days of deletion
- after 30 days user account for 93 days is soft deleted and can be restored from Sharepoint recycle bin:
Get-SPODeletedSite -IncludeOnlyPersonalSite -Limit All
Restore-SPODeletedSite -Identity “https://mydomain-my.sharepoint.com/personal/user01_domain_com”
