Loading TOC...

view.getPermissions

view.getPermissions(
   schema-name as String,
   view-name as String
) as Sequence

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

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

view.getPermissions('main', 'employees');

// Returns the permissions set on the 'employees' view in the 'main' schema.
   

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