Merge Duplicate LDAP User Accounts

Still need help?

The Atlassian Community is here for you.

Ask the community


Duplicate user error messages can occur in JIRA when a new LDAP user directory is added to JIRA, if an existing username is edited to a username that already exists in JIRA, or when switching to a new database or LDAP account while still wanting to keep the old issues tied to the new user.

Symptoms

  1. Have duplicate users or user directories with different names
  2. Try to change the name of one of the duplicates
  3. Throws error that a user already exists with this name

Cause

All associations of comments and other items in JIRA are based off username. When you try to rename a user to that Unique Identifier it throws this error.

Workaround

    1. Login as internal JIRA admin user.
    2. Disable the old AD User Directory.
    3. Rename all users to your current AD naming structure.
    4. Turn your old AD User Directory back on and make sure it's thew new AD naming structure is on top of the User Directories list.

This fixes the issue because of the way JIRA reads User Directories. JIRA starts from the top and User Directory and pulls out all users it finds. Once it finds a user JIRA no longer looks or tries to pull out user information for that particular username.

Last modified on Feb 26, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.