Forum Discussion
Eric Adler
Apr 25, 2017Steel 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...
Eric Adler
Apr 25, 2017Steel Contributor
So it was Sharegate that "did". I mean, I did it, through Sharegate. Sharegate also had the ability to undo it as well. I used a PowerShell script that MSFT provided instead (they were first).
It was interesting to troubleshoot with MSFT.
The setting is under the good old "central admin" now SharePoint admin. We used the user profile to check to see if "My Site" had a secondary admin, and it did.
Funny to see how little they have changed the UI. We looked under "Setup My Sites" to see if there was a default secondary admin or secodary owner.
Thanks everyone for you help!!!
zstjmb
Apr 30, 2018Brass Contributor
I removed the secondary owner in the central admin center but it did not remove it - is this something that takes 24 hours to perform this task?
- zstjmbMay 21, 2018Brass Contributor
I got a powershell script to remove my permissions from all OneDrive users. Thanks.
- SaschaBuehlerSep 09, 2019Copper Contributorcould you share this script, please
- Paul McClenaghanMay 21, 2018Copper ContributorCould you please advise where you got the script?
- zstjmbMay 21, 2018Brass Contributor
Sure, I got it directly from Microsoft - here is the script:
Powershell command to attach to someone's OneDrive as a secondary Administrator to copy files:
Open SharePoint Online Management Shell - run as Administrator
Copy and run this script below replacing the user's name and using underscore between user first name and last name and yourcompany.com
Set-SPOUser -Site https://your-tenant-my.sharepoint.com/personal/FirstName_LastName_yourcompany_com -LoginName Your.Name@yourcompany.com -IsSiteCollectionAdmin $false
Then hit ENTER to run.
NOTES:
$true adds you as an Admin to their OneDrive
$false removes you as Admin to their OneDrive