@Override
  public boolean checkUserPrivileges(String userName, PrivilegeUnion union) throws AuthException {
    return isAdmin(userName);
  }
So not with the token!

@param token Usually the JWT but could also be just the name of the user.
@return true if the user is an admin
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/auth/authorizer/OpenIdAuthorizer.java