code: public User getRemoteUser() {
          HttpServletRequest request = ServletActionContext.getRequest();
  
          if (request != null) {
              String remoteUserName = request.getRemoteUser();
  
              if (remoteUserName != null) {
                  return getUserAccessor().getUserIfAvailable(remoteUserName);
              }
          }
  
          return AuthenticatedUserThreadLocal.getUser();
      }
docs: <p>getRemoteUser.</p>
  
  @return a {@link com.atlassian.user.User} object.