Loading TOC...

view.schemaGetPermissions

view.schemaGetPermissions(
   schema-name as String
) as Sequence

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. :)
    

Example

const view = require('/MarkLogic/views');

view.schemaGetPermissions('main');

// Returns the permissions set on the 'main' schema.
   

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