Security Element
Applies to: SharePoint Foundation 2010
Contains the Read, Schema, and Write security settings that specify how the security for a list is configured.
<Security>
<ReadSecurity> 1 | 2 </ReadSecurity>
<SchemaSecurity> 1 | 2 </SchemaSecurity>
<WriteSecurity> 1 | 2 | 4 </WriteSecurity>
</Security>
Attributes
Attribute |
Description |
---|---|
None |
N/A |
Child Elements
Parent Elements
Occurrences
Minimum: 0 Maximum: 1 |
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, etc.). |
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>