Loading TOC...

sec:user-get-queries

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

Summary

Returns the queries for the specified user.

Parameters
$user-name The name of a user.

Required Privileges

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

Usage Notes

This function must be executed against the security database. If a user with name $user-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:user-get-queries("Mike")

(: Get the user queries of the user "Mike". :)
  

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