sec.removeQueryRolesets( qrss as element(sec.queryRolesets)*) ) 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 declareUpdate(); const sec = require('/MarkLogic/security.xqy'); var roleset = sec.queryRolesets(sec.queryRoleset("els-role-2")); sec.removeQueryRolesets(roleset)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.