xdmp:permission( $role as xs:string, $capability as xs:string, [$output-kind as xs:string] ) as element()|map:map
Returns a permission element in the security namespace corresponding to the named role and capability given.
xdmp:permission("development", "read") =><sec:permission> <sec:capability>read</sec:capability> <sec:role-id>32497824353</sec:role-id> </sec:permission>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.