MarkLogic 9 Product Documentation
dom:add-permissionsdom:add-permissions(
$domain-name as xs:string,
$permissions as item()*
) as empty-sequence()
Summary
Add permissions to the domain. An error is raised if
the domain cannot be found. The triggers associated with the domain
will be modified also.
Parameters |
domain-name |
The name of the domain to be changed.
|
permissions |
Additional permissions for the domain.
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:add-permissions( "Incoming",
xdmp:permission("development", "read") )
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.