MarkLogic Server 11.0 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
Powered by MarkLogic Server | Terms of Use | Privacy Policy