MarkLogic 12 EA 1 Product Documentation
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) 
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy