MarkLogic 9 Product Documentation
view:schema-get-permissions

view:schema-get-permissions(
   $schema-name as xs:string
) as element(sec:permission)*

Summary

This function returns the permissions set on the specified schema.

Parameters
schema-name The name of the schema.

Example


  xquery version "1.0-ml"; 
 
  import module namespace view = "http://marklogic.com/xdmp/view" 
      at "/MarkLogic/views.xqy";
 
  view:schema-get-permissions("main")

  (: Returns the permissions set on the 'main' schema. :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy