MarkLogic 9 Product Documentation
sec.removeQueryRolesets

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

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');
	  
var roleset = sec.queryRolesets(sec.queryRoleset("els-role-2"));
sec.removeQueryRolesets(roleset) 
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy