Forum Discussion
Eric Adler
Apr 25, 2017Iron Contributor
Global Admin Showing up with Access to All Users OneDrive for Business
We are seeing one of the global admin accounts (mine) as having accesss to ever users OneDrive account. While in OneDrive it says it Shared "Only You" when you click on it you see that two accoun...
MoshJohr
Mar 22, 2019Copper Contributor
BrianBarbagallo Thanks for sharing this script! Had to do some minor changes for get it working but helped me a lot. Had the same issue because of sharegate. Now everything is like it should be :)
BrianBarbagallo
Apr 02, 2019Brass Contributor
MoshJohr If you are ever in need to gain that access back or set another person to the OneDrive, say after a person leaves the company, you can grant permissions using this script.
$MySite="https://YOURSITE-my.sharepoint.com/personal/YOURUSER_YOURSITE_com/"
$SecondaryAdmin ="You@YOURSITE.com"
Set-SPOUser -Site $MySite -LoginName $SecondaryAdmin -IsSiteCollectionAdmin $true
- Sankarasubramanian ParameswaranDec 12, 2019Iron Contributor
BrianBarbagallo we want to give rights to list of one drive accounts not all accounts. whether it is possible