MarkLogic 12 EA 1 Product Documentation
cts:document-permission-query

cts:document-permission-query(
   $role as xs:string,
   $capability as xs:string
) as cts:document-permission-query

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((),(),cts:document-permission-query("admin","execute"))
=> .. Return all URIs of documents which have admin/execute permission
Powered by MarkLogic Server | Terms of Use | Privacy Policy