xdmp:user-get-default-permissions( $username as xs:string, [$output-kind as xs:string] ) as element(sec:permission)*|map:map*
Return the default permissions of specified user.
xdmp:user-get-default-permissions("nobody") => <sec:permission xmlns:sec="http://marklogic.com/xdmp/security"> <sec:capability>read</sec:capability> <sec:role-id>8487823278258687528</sec:role-id> </sec:permission>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.