MarkLogic 10 Product Documentation
view:get-permissions

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

Summary

This function returns the permissions set on the specified view.

Parameters
schema-name The name of the schema that contains the view.
view-name The name of the view.

Example


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

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