xdmp:node-permissions( $node as node(), [$output-kind as xs:string] ) as element(sec:permission)*|map:map*
Returns the permissions to a node's document.
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>)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.