Loading TOC...

xdmp.getRequestUsername

xdmp.getRequestUsername() as 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.getRequestUsername();
=> "fred"

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy