public PermissionInfoResp queryPermission(final AuthorPlan authorPlan) {
    try {
      return (PermissionInfoResp) getConsensusManager().read(authorPlan);
    } catch (final ConsensusException e) {
      LOGGER.warn("Failed in the read API executing the consensus layer due to: ", e);
      final TSStatus res = new TSStatus(TSStatusCode.EXECUTE_STATEMENT_ERROR.getStatusCode());
      res.setMessage(e.getMessage());
      return new PermissionInfoResp(res);
    }
  }
Query for permissions.

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