Loading TOC...

xdmp.permission

xdmp.permission(
   $role as String,
   $capability as String,
   [$output-kind as String]
) as Object|Element

Summary

Returns a permission object corresponding to the named role and capability given.

Parameters
$role A role name.
$capability A capability (read, update, insert, or execute).
$output-kind The output kind. It can be either "object" or "element". With "object", the built-in returns an object. With "element", the built-in returns an XML element node. The default is "object".

Example

  xdmp.permission("development", "read")
  =>
  {
    "capability" : "read",
    "roleId" : "32497824353"
  }

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy