dom:set-permissions( $domain-name as xs:string, $permissions as item()* ) as empty-sequence()
Set the permissions of the domain. An error is raised if the domain cannot be found. If the triggers associated with the domain will be modified also.
xquery version "1.0-ml"; import module namespace dom = "http://marklogic.com/cpf/domains" at "/MarkLogic/cpf/domains.xqy"; dom:set-permissions( "Incoming", xdmp:default-permissions() )
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.