Loading TOC...

MarkLogic 9 Product Documentation
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') ) )
  

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