public static TPermissionInfoResp generateEmptyPermissionInfoResp() {
    TPermissionInfoResp permissionInfoResp = new TPermissionInfoResp();
    permissionInfoResp.setUserInfo(
        new TUserResp(
            new TRoleResp(
                "",
                new ArrayList<>(),
                new HashSet<>(),
                new HashSet<>(),
                new HashMap<>(),
                new HashSet<>(),
                new HashSet<>()),
            "",
            new HashSet<>(),
            false));
    Map<String, TRoleResp> roleInfo = new HashMap<>();
    roleInfo.put(
        "",
        new TRoleResp(
            "",
            new ArrayList<>(),
            new HashSet<>(),
            new HashSet<>(),
            new HashMap<>(),
            new HashSet<>(),
            new HashSet<>()));
    permissionInfoResp.setRoleInfo(roleInfo);
    return permissionInfoResp;
  }
Generate empty permission response when failed
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java