ListItem
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<Lists>
<List AllowDeletion="false" Title="TestList" ContentTypesEnabled="true" TemplateType="100" OnQuickLaunch="true" Url="Lists/TestList">
<ContentTypes>
<ContentType Title="Company Info" ParentContentTypeId="0x01003B87C76F7894463D87A615D35FDE46C4"></ContentType>
</ContentTypes>
<ListItems>
<ListItem ContentTypeId="0x01003B87C76F7894463D87A615D35FDE46C4">
<Properties>
<Property Name="Title"><![CDATA[{title}]]></Property>
</Properties>
</ListItem>
</ListItems>
</List>
</Lists>
|
Item Level Security
In document libraries it is possible to apply item level security. Setting unique permissions on a folder is also considered as item level security, because SharePoint sees a folder as an item as well. See the following example on how to implement item level security for a folder:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<Lists>
<List Url="Bibliotheek" TemplateType="101" TemplateFeatureId="00bfea71-e717-4e80-aa17-d0c71b360101" ContentTypesEnabled="True" Description="Bibliotheek voor alle dossiers voor deze opdracht." EnableFolderCreation="False" EnableMinorVersions="True" EnableModeration="False" EnableVersioning="True" ForceCheckout="False" MajorVersionLimit="500" MajorWithMinorVersionsLimit="0" Title="Bibliotheek">
<RootFolder Name="Bibliotheek">
<Folders>
<Folder Name="Werkvoorbereiding documenten">
<!-- Rechten worden verderop verbroken voor deze map -->
<Folders>
<Folder Name="01. Aanvraag bestek"></Folder>
<Folder Name="02. Voorcalculatie"></Folder>
<Folder Name="03. Inkoop"></Folder>
</Folders>
</Folder>
<Folder Name="Contract documenten">
<Folders>
<Folder Name="01. Offerte en opdracht"/>
<Folder Name="02. Aanvraag bestek"/>
<Folder Name="03. Calculatie"/>
<Folder Name="04. Inkoop"/>
<Folder Name="05. Klic - melding"/>
<Folder Name="06. Meer minder werk"/>
</Folders>
</Folder>
<Folder Name="Uitvoering documenten">
<Folders>
<Folder Name="01. Planning"/>
<Folder Name="02. Inkoop bestelbonnen"/>
<Folder Name="03. Opleveringen"/>
<Folder Name="04. Verslagen"/>
<Folder Name="05. Communicatie"/>
<Folder Name="06. Afbeeldingen"/>
</Folders>
</Folder>
</Folders>
</RootFolder>
<ListItems>
<!-- Hier worden de rechten doorbroken van de folder Werkvoorbereiding documenten -->
<ListItem CopyRoleAssignments="false" GetObjectBy="InternalName">
<Properties>
<Property Name="FileLeafRef">Werkvoorbereiding documenten</Property>
</Properties>
<RoleAssignments>
<RoleAssignment PrincipalName="{Title} - Eigenaars" PrincipalType="SharePointGroup">
<RoleDefinitionBindings>
<RoleDefinition Name ="Volledig beheer"/>
</RoleDefinitionBindings>
</RoleAssignment>
</RoleAssignments>
</ListItem>
</ListItems>
</List>
</Lists>
|
An example of a template can be found here.