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 Jira Agents in Dropdown

I just upgraded from Jira Service Management 8.20.2 to 8.20.8 and noticed that when assigning a ticket to an agent, the agent drop-down list shows a duplicate of each agent. Does anyone know why this is and how I can fix it?

1 answer

0 votes
Brant Schroeder Community Leader May 15, 2022


Check and make sure that you do not have duplicate users in your user directory.  I am assuming you will not.  If there are not duplicates in the user directory you should perform a full index,%2C%20run%20Full%20re%2Dindex.

@Brant Schroeder  Does it have to be a Full or Background index will work?

Brant Schroeder Community Leader May 15, 2022

I would do a full reindex and not background.  My guess is that the index is corrupt.  A full reindex should fix it.  

@Brant Schroeder, so we actually do have duplicate user health check error. We sync user groups from AD and they automatically get added to the agents group/licensed. We also have a AD connection that syncs all of our domain users. We had no issues with this before the upgrade though. Not sure if its related to corrupted index or what but I'm not going to be able to do a full index until the weekend.

Brant Schroeder Community Leader May 16, 2022

Ok duplicate users is different and has nothing to do with the index.  Are the duplicate users in the same directory?  Or is one of the duplicate accounts  in jira crowd directory and the other in the AD directory?

They are in both directories, the "agent" one is being sync'd due to them being part of a group that is set to auto add them as an agent. The other is just syncing the entire AD user/local groups.

I saw this as a workaround but I've never connected to the database before so not sure how to do this?


As outlined in the BUG , the workaround in this case is to Avoid using duplicate usernames across different user directories, or manually deactivate one of the user in the database (set active=0) (DB: Example:

update cwd_user set active = 0 where id = 10000
Brant Schroeder Community Leader May 16, 2022

@Midnite8 Do you have a test instance of your environment where you can run scripts and test the changes before doing it in Production?

@Brant SchroederUnfortunately I don't have a DEV environment currently.

Brant Schroeder Community Leader May 16, 2022

@Midnite8 Do you have a way to snapshot your environment before making changes to the DB so you can roll back?  Disabling the duplicate accounts should fix the issue and I don't believe you will have any other side affects.  If you have a way to rollback I would suggest going down that route.  If you do not have a way to backup I would suggest submitting a support issue to Atlassian with a support zip.  The support zip will provide them additional information so they can ensure that this is the proper fix.  

@Brant Schroederyes, it is a VM so I can take a snapshot before the changes. I've never connected or executed commands to the DB before, can you provide more information on how to do so?

Brant Schroeder Community Leader May 16, 2022

@Midnite8 To make changes in the DB you will need to first shutdown Jira.  Once the Jira instance has been turned off you can then run your SQL scripts.  You will need to identify the username and the directory that the user is associated that you need to deactivate. 

You usually run the DB script when you have lots of duplicate users.  How many users do you have?  If it is only a small amount you can deactivate them in the user management section of the application.  I would suggest doing this first to make sure it fixes the issue. 

@Brant Schroederif the users are being sync'd from AD directory, the only way to disable them is via AD, I don't see a way to deactivate them from user management. I have about 240 agents but not all of them show as duplicates in the drop-down.

Brant Schroeder Community Leader May 16, 2022

@Midnite8 are they a duplicate in the same directory?  

@Brant SchroederYes, I have 2 directories that sync from AD. One of them is set to have User Object Filter to sync users that are part of a security group for Jira agents and the other one is syncing all domain users/local groups. Jira is identifying the users that are part of the agent security group are duplicates of the users in the all domain users syncing directory then I believe.

Brant Schroeder Community Leader May 16, 2022

OK that makes more sense.  I would adjust how you are managing your users.  Having two directory's that are syncing from the same AD environment is going to cause issues.  also the fix above will not work.  When you sync users are you bringing over AD groups?  Do you have a group that identifies your agents in AD? 

@Brant Schroeder, yes I am syncing local groups as well and yes, there is a security group in AD that identifies the agents in AD. I tested this out by assigning an agent license to a user that is not part of the security group in AD and it does not show a duplicate account in the drop-down but right after I added the user to the security group in AD, it shows as duplicate.

I'm looking at my Application Access page and I have Jira Service Management access provisioned for 2 local AD distribution groups. I believe this, combined with the directory sync that is filtering another local AD group is the cause of this issue since there is overlap of application access being provisioned. If a user is a member of local AD group 1, lets call it "Jira agents" AND one of the two local ad groups that are set for Jira Service Management access in Application access then there will be a duplicate. Hope this all makes sense.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

310 views 0 9
Join discussion

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