sec:remove-path( $path as xs:string, $path-namespaces as element(sec:path-namespace)* ) as empty-sequence()
This function removes protection from the specified protected path and removes the path from the Security database.
Parameters | |
---|---|
path | The name of the path to remove. |
path-namespaces | The namespace(s) for the path to be removed. |
http://marklogic.com/xdmp/privileges/remove-path
This function must be executed against the Security database.
(: execute this against the Security database :) xquery version "1.0-ml"; import module namespace sec = "http://marklogic.com/xdmp/security" at "/MarkLogic/security.xqy"; sec:remove-path("/root/bar[@baz=1]", ()), sec:remove-path("test", ()), sec:remove-path("/root/reg[fn:matches(@expr, 'is')]", ())
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.