sec:remove-query-rolesets( $qrss as element(sec:query-rolesets)*) ) as
This function removes query rolesets from the Security database.
Parameters | |
---|---|
qrss | Query rolesets to be removed. |
http://marklogic.com/xdmp/privileges/remove-query-rolesets
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"; let $roleset := sec:query-rolesets(sec:query-roleset("els-role-2")) return sec:remove-query-rolesets($roleset)