public static Optional<String> getRequestUserName() {
    return getRequestUser().map(User::getShortName);
  }
Returns the username for any user associated with the current RPC request or not present if no
user is set.
hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java