Forum Discussion
null null
Oct 23, 2017Iron Contributor
adding domain user to site collection admin for a users od4b site collection
I am trying to write a powershell script to change the Locale from En-US to EN-UK for which i have written powershell script to achieve that. However it does not execute as the the admin needs to to ...
Manidurai Mohanamariappan
Oct 28, 2017Iron Contributor
Hi,
you can't do with csom because if you add secondary admin for ODFB site using csom you must be a site collection admin in that site . so you can use "Set-SPOUser -Site $sitename -LoginName $secondaryadmin -IsSiteCollectionAdmin $true"
You can refer the following link
http://www.jijitechnologies.com/blogs/add-remove-secondary-site-collection-admin-to-all-onedrive-for-business-users