Loading TOC...

MarkLogic 10 Product Documentation
sec:remove-query-rolesets

sec:remove-query-rolesets(
   $qrss as element(sec:query-rolesets)*)
) as empty-sequence()

Summary

This function removes query rolesets from the Security database.

Parameters
qrss Query rolesets to be removed.

Required Privileges

http://marklogic.com/xdmp/privileges/remove-query-rolesets

Usage Notes

This function must be executed against the Security database.

Example


 (: 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)
    

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