Loading TOC...

MarkLogic Server 11.0 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

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