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.