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...
Bhavpreet Bains
Iron 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, 2018
I’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
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.- Joe JamesOct 14, 2018Copper Contributor
Yup, Totally understand! I didn't want to do that as well. But that was the only way I could get it working. Would be keen to know, if someone else have a different solution.