dom:configuration-set-permissions

dom:configuration-set-permissions(
   $permissions as item()*
) as empty-sequence()

Summary

Set new permissions for the CPF configuration. This will ripple down to the restart trigger as well.

Parameters
permissions The permissions for the configuration. When run in an XQuery context, the permissions are a sequence of XML elements (sec:permission). When importing this module into a Server-Side JavaScript context, the permissions are an array of Objects.

Example

xquery version "1.0-ml";
import module namespace dom = "http://marklogic.com/cpf/domains" 
		  at "/MarkLogic/cpf/domains.xqy";

dom:configuration-set-permissions( (xdmp:permission('my-role', 'read'), 
   xdmp:permission('my-role', 'execute') ) )
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy