
xdmp.documentGetPermissions( uri as String, [output-kind as String] ) as Object[]|Element[]
Returns the permissions to a given document.
xdmp.documentGetPermissions("chapter5.json")
=>
[
{
"permission" : {
"capability" : "read",
"roldId" : "324978243"
}
},
{
"permission" : {
"capability" : "read",
"roldId" : "32493478578243"
}
},
{
"permission" : {
"capability" : "update",
"roldId" : "32493478578243"
}
}
]
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.