view.getPermissions( schema-name as String, view-name as String ) as Sequence
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. |
const view = require('/MarkLogic/views'); view.getPermissions('main', 'employees'); // Returns the permissions set on the 'employees' view in the 'main' schema.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.