xdmp.getRequestUser() as String
If this App Server is using application-level authentication,
returns the ID of the user in the last successful call to
Otherwise, returns the ID of the user from the
header of this App Server request.
If you want to get the ID of the current user, use the
xdmp.getRequestUser(); => 23987236