
sec.roleGetQueries( role-name as String ) as Object
Returns the queries for the specified role.
| Parameters | |
|---|---|
| role-name | The name of a role. | 
http://marklogic.com/xdmp/privileges/role-get-queries
This function must be executed against the security database. If a role with name $role-name is not found, an error is raised.
// execute this against the security database.
declareUpdate(); 
const sec = require('/MarkLogic/security.xqy');
sec.roleGetQueries("region-NA")
// Get the role queries of the role "region-NA".