Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Duplicate users found using RestAPI but cannot find them in UserManagement

Hello. I found more than 22 duplicate accounts of which there are a few each time in LDAP and Jira Internal Database. When I want to look them up in the User Management database, I only see one user each time. Any idea how this can happen?

2 answers

Hi Patrick, 

It is possible to have the same user in multiple user directories. In your case, you seem to have the same user in Jira Internal Directory and in Delegated LDAP Authentication.

When you have multiple directories, you can define the order of these directories. This determines which directory Jira will search first (in your case LDAP) when looking for user information (see: Once Jira finds the user, it will not search for it in the following directories. 

I highly recommend this article:

So how to solve this?

If you want to edit the internal user account, one option is to temporarily change the directory order and search for the duplicated users. It's very likely that these 22 users will not be able to log in during this period, so please be careful. Another option could be to install User Management for Jira ( on a trial license and perform a bulk operation for these users with filter set to only in Internal Directory. 

0 votes

@Patrick Vijgeboom, could you please provide some additional details about what you are experiencing?


Are you saying that you've found duplicate email addresses, duplicate user names, both? Where are you seeing the duplicates, and where are you seeing the single user?

I found the duplicates with the following curl of its equivalent URL.

curl -X GET "<BASE_URL>/rest/api/2/user/duplicated/list" \

 For example I found:

{"directoryId":1,"directoryName":"Jira Internal Directory","userActive":true}],"<USERNAME>":[\{"directoryId":10001,"directoryName":"Delegated LDAP Authentication","userActive":true},\

I did a search on in UserManagement but I find only the LDAP account but not the JID account.

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you