xdmp.nodePermissions( node as Node, [output-kind as String] ) as Object[]
Returns the permissions to a node's document.
xdmp.nodePermissions(cts.doc("chapter5.json")) => [ { "permission" : { "capability" : "read", "roleId" : "324978243" } }, { "permission" : { "capability" : "read", "roleId" : "32493478578243" } }, { "permission" : { "capability" : "update", "roleId" : "32493478578243" } } ]
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.