최근 Crowd 5.1.2 최신버전으로 업그레이드를 하였다.
사용자 정보 변경 Rest API를 사용하던 중에 아래 에러를 만났다.
https://docs.atlassian.com/atlassian-crowd/5.1.3/REST/
Crowd 5.1.3
Sets the alias for the given username in all the applications, replacing the previous alias set for the same username, if they exist. Applications that are not included in the map will have their aliases removed. Request query parameters parametertypedescr
docs.atlassian.com
User의 이메일을 정보를 변경하려고 기존과 다른 이메일을 넣고 API를 호출했다.
403 응답을 받았고 오류 메세지는 아래와 같았다.
External applications are not allowed to change user emails
구글링 해보니 Crowd 4.버전에서 잘 쓰던 기능이 보안상 이유로 제거되었다는 사실을 발견하였다.
https://jira.atlassian.com/browse/CWD-5792
Loading...
Hi: Our customer tena-sda.org upgraded to Crowd 4.4.1 and noticed the ability to change the user e-mail address has been removed from the REST API due to security reasons. The customer would like to see it back if possible, having an option on Crowd to dis
jira.atlassian.com
다행히 댓글에 JVM 파라미터 값을 추가하면 된다는 해결방법이 있었다.
Crowd 하위 /apache-tomcat/bin/setenv.sh 파일 JAVA_OPTS 부분에 아래 값을 추가했다.
-Dcrowd.email.change.by.external.apps=true
Crowd를 재기동하니 기존처럼 이메일 수정 API가 정상 작동하였다.
갑자기 잘 사용하던 API의 기능을 제한하거나 변경하는 것은 문제다.
그래도 먼저 오류를 겪은 사람들 덕분에 빠르게 해결책을 찾았다.
'IT 이야기 > Jira, Confluence, Crowd' 카테고리의 다른 글
스크립트러너 groovy 파일 작성 로그 찍기 (0) | 2023.09.15 |
---|---|
Jira 프로젝트 Sub-Tasks 생성 불가 이슈 리더 비활성화 계정 확인 (0) | 2023.07.06 |
Confluence 공간 페이지 표 깨짐 현상 버그 해결 (0) | 2023.07.06 |
Crowd 사용자 비활성화 Rest API 대량 작업 (0) | 2023.06.30 |
Confluence 기본 그룹과 권한 관리, 개인공간 생성 제한 (0) | 2023.06.15 |