dom:configuration-set-permissions( $permissions as item()* ) as empty-sequence()
Set new permissions for the CPF configuration. This will ripple down to the restart trigger as well.
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: Get the most useful answers to questions from the MarkLogic community, or ask your own question.