sec.queryRolesetsId( rolesets as element(sec.queryRolesets) ) as (Number|String)
This function returns the ID of a query-rolesets.
Parameters | |
---|---|
rolesets | the query-rolesets |
const sec = require('/MarkLogic/security.xqy'); sec.queryRolesetsId(sec.queryRolesets(sec.queryRoleset("els-role-1")))