Partager via


Security Element

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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

ReadSecurity, SchemaSecurity, WriteSecurity

Parent Elements

List

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>