Security Element
The Security element contains the Read, Schema, and Write security settings that specify how the security for a list is configured.
Syntax
<Security>
<ReadSecurity> 1 | 2 </ReadSecurity>
<SchemaSecurity> 1 | 2 </SchemaSecurity>
<WriteSecurity> 1 | 2 | 4 </WriteSecurity>
</Security>
Element Relationships
Parent Elements | Child Elements |
---|---|
List | ReadSecurity, SchemaSecurity, WriteSecurity |
Remarks
The following table summarizes possible values that subelements of the Security element can contain.
Value | ReadSecurity | SchemaSecurity | WriteSecurity |
---|---|---|---|
1 | Read all items. | Anyone can modify the schema (add and delete columns, and so on). | Write all items. |
2 | Read only my items. | Only the list owner can modify the schema. | Write only my items. |
4 | N/A | N/A | Write no items (read-only list). |
Example
The following example outlines how to use the Security element.
<List Name="Announcements"...>
.
.
.
<Security>
<ReadSecurity>1</ReadSecurity>
<WriteSecurity>1</WriteSecurity>
<SchemaSecurity>1</SchemaSecurity>
</Security>
.
.
.
</List>