Content Type: application/vnd.csp.permission+xml

This content type represents information about the permission a single account has on an object.


Elements

permission


Elements

grantee

Specifies the grantee. This is the account for which these permissions apply.


Type: xs:string


permissions

Specifies the permission string, which defines the access capabilities for the account.


Type: xs:string


expiration (Optional)

Specifies the expiration date for this set of permissions.


Type: xs:string


comment (Optional)

Specifies a comment. The comment is a text message specified by the person assigning the permissions. It is used by the notification system to allow the granter to send a short message to the grantee at the time the permissions are assigned.


Type: xs:string


Schema Definition

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="permission">
    <xs:complexType>
      <xs:all>
        <xs:element name="grantee" type="xs:string"/>
        <xs:element name="permissions" type="xs:string"/>
        <xs:element name="expiration" minOccurs="0" type="xs:string"/>
        <xs:element name="comment" minOccurs="0" type="xs:string"/>
      </xs:all>
    </xs:complexType>
  </xs:element>
</xs:schema>

Example

<permission>
  <grantee>example@example.com</grantee>
  <permissions>rw</permissions>
  <expiration/>
  <comment/>
</permission>