Loading TOC...

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")))
 
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.