dom:configuration-create( $restart-user as xs:string, $evaluation-context as element(dom:evaluation-context), $default-domain as xs:unsignedLong, $permissions as element(sec:permission)* ) as xs:unsignedLong
Create a new CPF configuration.
xquery version "1.0-ml"; import module namespace dom = "http://marklogic.com/cpf/domains" at "/MarkLogic/cpf/domains.xqy"; dom:configuration-create( "admin", dom:evaluation-context( xdmp:database("Modules"), "/" ), fn:data(dom:get("my-domain")/dom:domain-id), (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.