public TAuthizedPatternTreeResp fetchAuthizedPTree(String username, int permission)
      throws AuthException {
    return authorInfo.generateAuthorizedPTree(username, permission);
  }
Query for permissions.

@param authorPlan AuthorReq
@return PermissionInfoResp
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/PermissionManager.java