MarkLogic 12 EA 1 Product Documentation
sec:role-get-queries

sec:role-get-queries(
   $role-name as xs:string
) as map:map

Summary

Returns the queries for the specified role.

Parameters
role-name The name of a role.

Required Privileges

http://marklogic.com/xdmp/privileges/role-get-queries

Usage Notes

This function must be executed against the security database. If a role with name $role-name is not found, an error is raised.

Example


(: execute this against the security database :)
xquery version "1.0-ml"; 
import module namespace sec = "http://marklogic.com/xdmp/security" 
  at "/MarkLogic/security.xqy";
  
sec:role-get-queries("region-NA")

(: Get the role queries of the role "region-NA". :)
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy