sec.queryRolesetsCollection() as String
This function returns the collection of query rolesets.
http://marklogic.com/xdmp/privileges/query-roleset-collection
This function must be executed against the Security database.
const sec = require('/MarkLogic/security.xqy'); sec.queryRolesetsCollection() => http://marklogic.com/xdmp/queryRolesets
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.