Forum Discussion
Bhavpreet Bains
Oct 09, 2018Iron Contributor
onedrive list of admin
Hello, We have a user who was accidentally added as site collection admin to various OneDrive accounts. Is it possible to pull a list of all site collection admin for all OneDrive accounts? I...
Oct 09, 2018
Bhavpreet Bains
Oct 09, 2018Iron Contributor
Hello Juan,
I've tried the following cmdlet but it doesn't return isSiteAdmin true.
get-spouser -Site "<site url>" | select DisplayName, LoginName, UserType, IsSiteAdmin
I've tried the following cmdlet but it doesn't return isSiteAdmin true.
get-spouser -Site "<site url>" | select DisplayName, LoginName, UserType, IsSiteAdmin
- Oct 09, 2018I’m playing with a script but so far all I get is all the onedrive sites and the original corresponding owner, even if I added someone else as owner as well.
IsSiteAdmin doesn’t return any value- Joe JamesOct 09, 2018Copper Contributor
Have not looked at the script yet, but you have to be a owner yourself to be able to read the other site collection admins. Not sure if that is the problem.
- Bhavpreet BainsOct 12, 2018Iron ContributorHello Joe,
I don't want to give an account site collection admin access to random sites.