Forum Discussion
Fromelard
Jun 12, 2018Iron Contributor
SharePoint Online: Create subsite using PowerShell script based on CSOM or PnP
In Office 365, the SharePoint "Save as Site template" is not available anymore.
In many case, this strategy was used by power users to create a templated site they can save and use after for th...
Fromelard
Oct 09, 2018Iron Contributor
Dear Jean-Marie,
The part of the code "SetAssociatedGroup" is always the painful one.
It's mainly related to the modification Microsoft is doing on the SharePoint side (with the modern group sites).
This option is blocking without any real reason and the only way I found to execute it is to unlock the site before the command execution with that command:
- Set-SPOSite [RootSiteCollectionURL] -DenyAddAndCustomizePages 0
I'm really not sure that will help you in that case, but in many one it was the solution to.
Fab
jmThia
Oct 09, 2018Brass Contributor
No more authorization error while setting the default group !!
Thanks for the tip.
I will put the value back for now as I really can't image the side effect of this.