MarkLogic Server 11.0 Product Documentation
view:schema-remove-permissions

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

Summary

This function removes permissions from the specified schema specification.

Parameters
schema-name The name of the schema specification.
permissions The permissions to remove from the schema specification. 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 view = "http://marklogic.com/xdmp/view" 
      at "/MarkLogic/views.xqy";

  view:schema-remove-permissions("main", (xdmp:permission("test-user", "read"),
                                          xdmp:permission("test-user", "update")))

  (: Disables users with the test-user role from reading and updating the 'main' schema. :) 
     
Powered by MarkLogic Server | Terms of Use | Privacy Policy