{"record":{"id":"87a9e7563cd7f8c4","repo":"apache/dolphinscheduler","slug":"user-no-operation-perm-87a9e7","errorCode":"USER_NO_OPERATION_PERM","errorMessage":"USER_NO_OPERATION_PERM","messagePattern":"USER_NO_OPERATION_PERM","errorType":"error_code","errorClass":"ServiceException","httpStatus":null,"severity":"error","filePath":"dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/AlertGroupServiceImpl.java","lineNumber":93,"sourceCode":"        if (ids.isEmpty()) {\n            return Collections.emptyList();\n        }\n        return alertGroupDao.queryByIds(ids);\n    }\n\n    /**\n     * query alert group by id\n     *\n     * @param loginUser login user\n     * @param id        alert group id\n     * @return one alert group\n     */\n    @Override\n    public AlertGroup queryAlertGroupById(User loginUser, Integer id) {\n\n        // only admin can operate\n        if (!canOperatorPermissions(loginUser, new Object[]{id}, AuthorizationType.ALERT_GROUP, ALERT_GROUP_VIEW)) {\n            throw new ServiceException(Status.USER_NO_OPERATION_PERM);\n        }\n        // check if exist\n        AlertGroup alertGroup = alertGroupDao.queryById(id);\n        if (alertGroup == null) {\n            throw new ServiceException(Status.ALERT_GROUP_NOT_EXIST, id);\n        }\n        return alertGroup;\n    }\n\n    /**\n     * paging query alarm group list\n     *\n     * @param loginUser login user\n     * @param searchVal search value\n     * @param pageNo    page number\n     * @param pageSize  page size\n     * @return alert group list page\n     */","sourceCodeStart":75,"sourceCodeEnd":111,"githubUrl":"https://github.com/apache/dolphinscheduler/blob/02eac45a1b6676e639fcbfb4be2243de5771b05d/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/AlertGroupServiceImpl.java#L75-L111","documentation":"Thrown by queryAlertGroupById when canOperatorPermissions fails: the caller is not an admin and lacks the ALERT_GROUP_VIEW permission on the alert group. It is a standard authorization guard — the requested alert group id cannot be viewed by this user.","triggerScenarios":"Thrown at dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/AlertGroupServiceImpl.java:93 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Log in as an admin user, or ask an admin to grant the ALERT_GROUP_VIEW permission for this alert group.","Verify the alert group id is correct and belongs to a resource your user is authorized to see.","Use the alert group list endpoint to confirm which groups your account can access."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"02eac45a1b6676e639fcbfb4be2243de5771b05d","analyzedAt":"2026-09-06T17:43:00.555Z","contentChangedAt":"2026-09-06T17:43:00.555Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}