public String getUsername() {
    return AuthorizationHelper.resolveLoginAliasToUserName(securityHelper.getCurrentUserName());
  }
Get the current user name.

@return the current user name; empty String if user is not known
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java