view:schema-remove-permissions( $schema-name as xs:string, $permissions as item()* ) as empty-sequence()
This function removes permissions from the specified schema specification.
xquery version "1.0-ml"; import module namespace view = "http://marklogic.com/xdmp/view" at "/MarkLogic/views.xqy"; view:schema-remove-permissions("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: Get the most useful answers to questions from the MarkLogic community, or ask your own question.