public TPermissionInfoResp checkUserPrivilegeGrantOpt(String username, PrivilegeUnion union)
      throws AuthException {
    union.setGrantOption(true);
    return authorInfo.checkUserPrivileges(username, union);
  }
Query for permissions.

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