xdmp.permission( role as String, capability as String, [output-kind as String] ) as Object|Element
Returns a permission object corresponding to the named role and capability given.
xdmp.permission("development", "read") => { "capability" : "read", "roleId" : "32497824353" }
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.