MarkLogic 10 Product Documentation
sec:query-rolesets-id

sec:query-rolesets-id(
   $rolesets as element(sec:query-rolesets)
) as xs:unsignedLong

Summary

This function returns the ID of a query-rolesets.

Parameters
rolesets the query-rolesets

Example



xquery version "1.0-ml"; 
 
import module namespace sec = "http://marklogic.com/xdmp/security" 
      at "/MarkLogic/security.xqy";

sec:query-rolesets-id(sec:query-rolesets(sec:query-roleset("els-role-1")))
 
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy