sec.userGetQueries

sec.userGetQueries(
   user-name as String
) as Object

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.
declareUpdate(); 
const sec = require('/MarkLogic/security.xqy');

sec.userGetQueries("Mike")

// Get the user queries of the user "Mike".
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy