Loading TOC...

sec.removeQueryRolesets

sec.removeQueryRolesets(
   $qrss as element(sec.queryRolesets)*)
) as null

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 
declareUpdate();
const sec = require('/MarkLogic/security.xqy');
	  
const roleset = sec.queryRolesets(sec.queryRoleset("els-role-2"));
sec.removeQueryRolesets(roleset) 
    

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