Forum Discussion

Khalid Hajjouji's avatar
Khalid Hajjouji
Copper Contributor
Oct 10, 2018

PnP template provisioning, how to set sitegroup as associated owner group

I am using pnp template provisioning and have an xml template. In the xml template I created 1 custom site group. I would like to set this group as an associated owner group. How to do this?

 

See below the sitegroup definition in my pnp template:

 

<pnp:SiteGroups>
          <pnp:SiteGroup Title="MyCustomOwnerGroup" Description="MyCustomOwnerGroup" Owner="i:0e.t|adfs|someusername@mycompany.com" OnlyAllowMembersViewMembership="false" AllowMembersEditMembership="true"/>
</pnp:SiteGroups>

  • Khalid Hajjouji's avatar
    Khalid Hajjouji
    Copper Contributor

    A workaround for now is to do it in pnp powershell after the pnp template provisioning is finished:


    Set-PnPGroup -Identity "MyCustomOwnerGroup" -SetAssociatedGroup Owners