The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Active Directory - username changed but only partially in JIRA

Jacques
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 23, 2015

Hello,

I have the following issue:

  1. We sync our JIRA with our Active Directory
  2. A user, with username "cmatthews" was created in Active Directory. 
  3. This user created various issues in JIRA which were successfully resolved and closed.
  4. This same user asks for a username change and it is changed in Active Directory to "cthomas"
  5. Active Directory syncs with JIRA and successfully changes the username from "cmatthews" to "cthomas" in the [cwd_user] SQL table.
  6. However, when this user now creates an issue in JIRA the associated user in the [jiraissue] SQL table remains "cmatthews".

Since we consult JIRA data throught the REST API, we cannot seem to get the issues raised by "cthomas".

I have tried to clean the JIRA cache, reindexed issues, restarted JIRA from zero, but to no success.

Our JIRA Version is: v6.3.4

Any suggestions?

thanks!
Jacques

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Sten Sundelin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 24, 2015

This may be related to the following bug in JIRA:

The root of the problem is that the JIRA DB is not completely updated if a username is edited. In the GUI, worklogs are properly modified to display the new username, not so using the REST API. This means that work logs extracted using the REST API are returned with the wrong (old) username!

A description can be found here:
https://jira.atlassian.com/browse/JRA-36642

The recommended fix is described in detail here:
https://answers.atlassian.com/questions/250787

Good luck!