Loading TOC...

MarkLogic Server 11.0 Product Documentation
xdmp:get-request-user

xdmp:get-request-user() as xs:unsignedLong

Summary

If this App Server is using application-level authentication, returns the ID of the user in the last successful call to xdmp:login . Otherwise, returns the ID of the user from the Authorization header of this App Server request. If you want to get the ID of the current user, use the xdmp:get-current-userid function.

Example

xdmp:get-request-user()
=> 23987236

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