Status: Gathering Impact (View Workflow)
Affects Version/s: 8.3.0, 7.13.9, 8.9.0
Fix Version/s: None
Component/s: User Management - Others
Introduced in Version:7.13
Support reference count:30
Symptom Severity:Severity 2 - Major
Bug Fix Policy:
When updating a user name in Jira such as naming a user in an LDAP as the same username as an internal user, this can cause some undesirable behavior if you choose to rename one of the users back to their previous/any other username. Similar to
- Set up Jira to a connector LDAP directory.
- Create two users, test and testtester. One in the internal and the other in the LDAP directory.
- Rename the LDAP user to match the internal directory user. Jira will recognize this user as the same user since the name matches between directories.
- Rename the LDAP user back to their previous username(testtester) or any other username.
This will update the current record inside of Jira's app_user table so it recognizes the user as its previous user.
When you change the user back to their old username in LDAP so they don't match the internal users username, Jira creates an app_user record for a brand new user and then renames the historical record of the user name with a #1 behind it but nothing gets added to cwd_user so the relationship ends up being broken.
This causes some undesirable behavior where the old user record cannot be interacted with in the GUI if they were an assignee of an issue before the username change. Example:
Here, we can see the broken Assignee record in the JQL results. This user can be changed as the assignee but this shows the broken relationship between what's in the GUI compared to what's in the database since the link for the user between app_user and cwd_user gets broken.
If you plan to rename an LDAP user to an existing user_name of the internal directory, the following steps can avoid this behavior:
- Disable the LDAP directory;
- Move the internal directory to the top of the list;
- Rename the internal users to something different;
- Rename the LDAP users to the target username;
- Enable the directory and move it back to the top of the list.