getUsername

static String getUsername()

Determines the username of the user running the script. If for some reason the logged in user does not have a username, this will be an empty string.