xdmp:document-get-permissions( $uri as xs:string, [$output-kind as xs:string] ) as item()*
Returns the permissions to a given document.
xdmp:document-get-permissions("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.