MarkLogic Server 11.0 Product Documentation
sec.queryRolesetsId

sec.queryRolesetsId(
   rolesets as element(sec.queryRolesets)
) as (Number|String)

Summary

This function returns the ID of a query-rolesets.

Parameters
rolesets the query-rolesets

Example


 
const sec = require('/MarkLogic/security.xqy');

sec.queryRolesetsId(sec.queryRolesets(sec.queryRoleset("els-role-1")))
 
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy