MarkLogic Server 11.0 Product Documentation
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.
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy