MarkLogic Server 11.0 Product Documentation
xdmp:node-permissions

xdmp:node-permissions(
   $node as node(),
   [$output-kind as xs:string]
) as element(sec:permission)*|map:map*

Summary

Returns the permissions to a node's document.

Parameters
node The node.
$output-kind The output kind. It can be either "elements" or "objects". With "elements", the built-in returns a sequence of XML elements. With "objects", the built-in returns a sequence of map:map. The default is "elements".

Example

  xdmp:node-permissions(fn:doc("chapter5.xml"))
  =>(<sec:permission>
          <sec:capability>read</sec:capability>
          <sec:role-id>324978243</sec:role-id>
        </sec:permission>,
        <sec:permission>
          <sec:capability>read</sec:capability>
          <sec:role-id>32493478578243</sec:role-id>
        </sec:permission>,
        <sec:permission>
          <sec:capability>update</sec:capability>
          <sec:role-id>32493478578243</sec:role-id>
        </sec:permission>)
Powered by MarkLogic Server | Terms of Use | Privacy Policy