Loading TOC...

MarkLogic Server 11.0 Product Documentation
dom:remove-permissions

dom:remove-permissions(
   $domain-name as xs:string,
   $permissions as item()*
) as empty-sequence()

Summary

Remove 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 Permissions to remove. 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:remove-permissions( "Incoming", 
		          xdmp:permission("development", "read") )
  

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