Loading TOC...


   schema-name as String,
   permissions as Sequence
) as null


This function removes permissions from the specified schema specification.

schema-name The name of the schema specification.
permissions The permissions to remove from the schema specification. When run in an XQuery context, the permissions are a sequence of XML elements (sec:permission). When importing this module into a Server-Side JavaScript context, the permissions are an array of Objects.


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

view.schemaRemovePermissions('main', (xdmp.permission('test-user', 'read'),
                                          xdmp.permission('test-user', 'update')));

// Disables users with the test-user role from reading and updating the 'main' schema.

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