xdmp.getCurrentUser() as String?
Returns the name of the current user.
xdmp.getCurrentUser(); => "ian"