In Blogs, Mavention Make

If the default SharePoint groups and RoleDefinitions aren’t sufficient for you, you can create your own ones in SharePoint. This can also be done via a Mavention Make template. 

Example

In this example I will create a new RoleDefinition, a new SharePoint group and add the RoleDefinition to the SharePoint group. I will also add a member to the SharePoint group.

<Configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.mavention.com/SharePoint/Apps/SiteConfigurator">
   <Providers>
      <Provider NodeName="Site" Class="Mavention.SharePoint.SiteConfigurator.Providers.SiteProvider" Assembly="Mavention.SharePoint.SiteConfigurator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a43c589e76ba4e3d"/>
   </Providers>
   <Site Url="{url}" Title="{title}" OwnerLogin="{siteowner}" Template="STS#0" LCID="1043" StorageQuota="1024" TimeZoneId="4">
      <RootWeb LCID="1043" Title="{title}" Url="{url}" Description="{description}">
         <Properties>
            <Property Name="WebTemplate">Create your own RoleDefininition and SharePoint group</Property>
            <Property Name="WebTemplateVersion">0.0.0.1</Property>
         </Properties>

         <!-- define the role and give this role permissions -->
         <RoleDefinitions>
            <RoleDefinition Name="SuperUser" BasePermissions="ViewListItems|ViewVersions|OpenItems|ViewVersions|Open|ViewPages|ManagePermissions|BrowseDirectories|BrowseUserInfo|EnumeratePermissions"/>
         </RoleDefinitions>

         <!-- Define the SharePoint group and add a role to it-->
         <RoleAssignments>
            <RoleAssignment PrincipalName="{title} - SuperUsers" PrincipalType="SharePointGroup" PrincipalSource="None">
               <RoleDefinitionBindings>
                  <RoleDefinition Name="SuperUser"/>
               </RoleDefinitionBindings>
            </RoleAssignment>
         </RoleAssignments>

         <!-- Add users to the SharePoint group-->
         <Groups>
            <Group Name="{title} - SuperUsers" Description="SuperUsers van deze site" Owner="{title} - Eigenaars">
               <Users>
                  <!-- These are the users that are added to the group-->
                  <User LoginName="wim.meurer@wimmav.onmicrosoft.com"/>
               </Users>
            </Group>

            <!--These are the (dutch) default SharePoint groups. Like this you can allready add members to it-->
            <Group Name="{title} - Eigenaars" Description="{title} Eigenaars" Owner="{title} - Eigenaars">
               <Users>
                  <User LoginName="wim.meurer@wimmav.onmicrosoft.com"/>
               </Users>
            </Group>
            <Group Name="{title} - Leden" Description="{title} Leden" Owner="{title} - Eigenaars" >
               <Users>
                  <User LoginName="wim.meurer@wimmav.onmicrosoft.com"/>
               </Users>
            </Group>
            <Group Name="{title} - Bezoekers" Description="{title} Bezoekers" Owner="{title} - Eigenaars" >
               <Users>
                  <User LoginName="wim.meurer@wimmav.onmicrosoft.com"/>
               </Users>
            </Group>
         </Groups>
      </RootWeb>
   </Site>
</Configurator>

Parameters

{ 
   "d": { 
      "parameters": [{ 
         "id": "url", 
         "title": "Site URL", 
         "inputType": "text", 
         "required": true, 
         "sampleValue": "https://tenant.sharepoint.com/sites/sitecollectie" 
      }, { 
         "id": "title", 
         "title": "Title", 
         "inputType": "text", 
         "required": true, 
         "sampleValue": "My Team" 
      }, { 
         "id": "description", 
         "title": "Description", 
         "inputType": "multiline", 
         "required": false, 
         "sampleValue": "Site for My Team" 
      }, { 
         "id": "siteowner", 
         "title": "Siteowner", 
         "inputType": "text", 
         "required": false, 
         "sampleValue": "site-owner@tenant.onmicrosoft.com" 
      }] 
   }
}

See also

Vul je zoekopdracht in.

home_-_office_ui_fabric