Cached User Data - Duplicate LDAP Users

MJ January 13, 2022

An issue was reported where User A would show up as User B in posts and notifications. Additionally, only one of these two would show up in the User Directory at a time. Ultimately it was discovered that both users had been assigned the same UID in LDAP. Since our Jira user directory is set to sync with LDAP, these accounts could not display correctly in the Atlassian tools simultaneously.

We addressed the core issue by assigning User A a new and unique UID and then resynching the user directory. Both users now appear separately in the Atlassian tools and for several days the issue appeared to be resolved. However, the wrong user appeared on an issue comment today, indicating that some link still exists between these two accounts. I suspect that despite the resync, the old user data may still be cached somewhere. 

Has anyone encountered a similar issue or know where old user data could be cached? Any ideas or insight are appreciated.

Using v8.13.3

1 answer

0 votes
Tom Lister
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 8, 2022

Hi @MJ 

If you changed the user UID it is likely it has been synched as a new user. 
When users are removed from LDAP, jira will still have the original user records as they will have references to older tickets and the relational integrity of the database needs to be maintained. 
I have had this issue many times on server.

You can use the SQL stored here to find duplicate user entries

https://tom-lister.atlassian.net/wiki/spaces/TL/pages/345112577/Duplicate+user+options 

This article describes how to change user references in the database

https://community.atlassian.com/t5/Atlassian-Cloud-Migration/Jira-LDAP-Migration-using-SQL/ba-p/942752

You'll need to be confident of your SQL and jira admin skills to go this route.

Suggest an answer

Log in or Sign up to answer