
view.removePermissions( schema-name as String, view-name as String, permissions as Sequence ) as null
This function removes permissions from those set for the named view in the named schema specification.
const view = require('/MarkLogic/views');
view.removePermissions('main', 'songs', (xdmp.permission('test-user', 'read'),
xdmp.permission('test-user', 'update')));
// Disables users with the test-user role from reading and updating the
// 'songs' view in the 'main' schema.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.