private List<Long> getAuthedProjectIds(int userId) throws ExternalOperationFailedException {
        String url = this.authedProjectUrl + "?userId=" + userId;
        DolphinSchedulerDataResponseRef responseRef = DolphinSchedulerHttpUtils.getHttpGetResult(ssoRequestOperation, url, DolphinSchedulerConf.DS_ADMIN_USER.getValue());
        List<Map<String, Object>> projectList = responseRef.getData();
        logger.info("the authed project is: {}", projectList);
        return projectList.stream().map(project -> DolphinSchedulerHttpUtils.parseToLong(project.get("id"))).collect(Collectors.toList());
    }
Grant project.

@throws ExternalOperationFailedException
            the external operation failed exception
dss-appconn/appconns/dss-dolphinscheduler-appconn/src/main/java/com/webank/wedatasphere/dss/appconn/dolphinscheduler/operation/DolphinSchedulerProjectGrantOperation.java