This function is called from the
request object. It returns a string of the requesting user's name.
Functions execute on OrientDB under specific users. Using this method you can determine which user executes the function. You may find this useful in logging operations or when building responses for functions that fail due to the user being unprivileged.
var username = request.getUser()
This method returns a string that provides the username of the requesting user.