Loading TOC...

MarkLogic 12 EA 1 Product Documentation
cts.documentPermissionQuery

cts.documentPermissionQuery(
   role as String,
   capability as String
) as cts.documentPermissionQuery

Summary

Returns a query matching documents with a given permission.

Parameters
role The role of the permission
capability The capability of the permission (read, update, node-update, insert, execute)

Example

  cts.uris(null,null,cts.documentPermissionQuery("admin","execute"))
=> .. Return all URIs of documents which have admin/execute permission

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.