MarkLogic Server 11.0 Product Documentation
view.removePermissionsview.removePermissions(
schema-name as String,
view-name as String,
permissions as Sequence
) as null
Summary
This function removes permissions from those set for the named view in the
named schema specification.
Parameters |
schema-name |
The name of the schema specification containing the view.
|
view-name |
The name of the view from which the permissions are to be removed.
|
permissions |
The permissions to be removed from the view.
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.
|
Example
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.
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.