Loading TOC...

xdmp:get-request-username

xdmp:get-request-username() as xs:string

Summary

If this App Server is using application-level authentication, returns the username in the last successful call to xdmp:login. Otherwise, returns the username from the Authorization header of this App Server request.

Example

xdmp:get-request-username()
=> "fred"

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

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.