본문 바로가기
IT 이야기/Jira, Confluence, Crowd

Crowd 사용자 이메일 정보 변경 Rest API 오류 해결

by youngmap 2023. 7. 6.
반응형

최근 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의 기능을 제한하거나 변경하는 것은 문제다.

그래도 먼저 오류를 겪은 사람들 덕분에 빠르게 해결책을 찾았다. 

반응형