Forum Discussion
Fromelard
Mar 30, 2017Iron Contributor
Office 365: Add accounts into the Site collection administrators list via PowerShell and CSOM
To add accounts (group or User) into the SPO SIte collection admin via code, there are 2 possible solutions: Via PowerShell and SPO Admin Really simple case ideal for one shot action, you need t...
Mikael Svenson
Mar 31, 2017Iron Contributor
Or use the PnP commandlets :) https://github.com/SharePoint/PnP-PowerShell/blob/master/Documentation/SetPnPTenantSite.md -owners param to set site collection admins.
Fromelard
Apr 02, 2017Iron Contributor
Thanks for this comment
It's another way, but from my side i prefer to be closed to the csom object model
Fab
It's another way, but from my side i prefer to be closed to the csom object model
Fab