@GET
  @Path("/home")
  @Produces(MediaType.APPLICATION_JSON)
  public Response homeDir() {
    try {
      HdfsApi api = getApi();
      return Response
        .ok(getApi().fileStatusToJSON(api.getFileStatus(api.getHomeDir()
          .toString()))).build();
    } catch (WebApplicationException ex) {
      throw ex;
    } catch (Exception ex) {
      throw new ServiceFormattedException(ex.getMessage(), ex);
    }
  }
Returns home directory
@return home directory
contrib/views/commons/src/main/java/org/apache/ambari/view/commons/hdfs/UserService.java