namespacePermission

The namespacePermission data type describes the namespacePermission property of the dataAccessPermissions data type.

Properties

The table below describes the properties included in the namespacePermission data type.

PropertyData TypeDescriptionNotes
namespaceNameStringSpecifies the name of the namespace to which the permissions listed in the permission property provide access.
permissionsList

Lists the permissions associated with the namespace identified by the namespaceName property. Valid values for permissions are:

  • BROWSE
  • CHOWN
  • DELETE
  • PRIVILEGED
  • PURGE
  • READ
  • READ_ACL
  • SEARCH
  • WRITE_ACL
  • WRITE

These values are not case sensitive.

The set of permissions specified in the request body replaces the set of permissions currently associated with the namespace identified by the namespaceName property. To remove all the permissions for a namespace, specify an empty list.

If the set of permissions includes PURGE, delete permission is enabled automatically. If the set of permissions includes READ, browse permission is enabled automatically. If the set of permissions includes SEARCH, browse and read permissions are enabled automatically.

Example

Here’s an XML example of the namespacePermission data type:

<namespacePermission>
    <namespaceName>Accounts-Receivable</namespaceName>
    <permissions>
         <permission>BROWSE</permission>
         <permission>CHOWN</permission>
         <permission>SEARCH</permission>
         <permission>PURGE</permission>
         <permission>WRITE_ACL</permission>
         <permission>DELETE</permission>
         <permission>PRIVILEGED</permission>
         <permission>READ</permission>
        <permission>READ_ACL</permission>
         <permission>WRITE</permission>
    </permissions>
</namespacePermission>