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