Feature request: Set Associated Groups option for SubSite creation

Jul 2, 2014 at 11:29 AM
Is it possible to have an option when creating a subsite, to set the associated groups. So they will show in the Group Quick Launch menu for the user. This is very welcome when using unique permissions when creating new subsites with CSOM
Jul 30, 2014 at 7:50 PM
You mean to script the three (I believe its three) groups, you need to set, when creating a unique permission site?
Jul 31, 2014 at 6:27 AM
Yes, that is what I mean, the groups are called AssociatedVisitorGroup, AssociatedMemberGroup, AssociatedOwnerGroup. I managed to get this working with this code:
$groups = $web.SiteGroups
$group = $groups | where {$_.Title -eq "Site-Visitors"}
$web.AssociatedVisitorGroup = $group