A RESTful browser for eXist Java-Based Function Modules


http://exist-db.org/xquery/system
A module for retrieving information about eXist and the system.

system:as-user($username as xs:string, $password as xs:string?, $code-block as item()*) item()*
A pseudo-function to execute a limited block of code as a different user. The first argument is the name of the user, the second is the password. If the user can be authenticated, the function will execute the code block given in the third argument with the permissions of that user andreturns the result of the execution. Before the function completes, it switches the current user back to the old user.
$usernameThe username of the user to run the code against
$passwordThe password of the user to run the code against
$code-blockThe code block to run as the identified user

Returns the results of the code block executed
Return to list of all modules