Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Multiple user directories - remove duplicate if same user in 2 OUs


I have following AD structure:


  Company               OU=company,DC=company,dc=local                             
  |   |-Groups          OU=groups,OU=company,DC=company,dc=local
  |     |-Admins        OU=admins,OU=groups,OU=company,DC=company,dc=local
  |        |- Service   OU=Service,OU=admins,OU=groups,OU=company,DC=company,dc=local            
  disabled              OU=disabled,dc=company,dc=local
  jira                 OU=jira,dc=company,dc=local
     |-Jira OU1
     |-Jira OU2
          |-programs OU=programs,OU=Groups,ou=jira,dc=company,dc=local


First LDAP directory covers OU=jira,dc=company,dc=local

Base DC: company,DC=local

Additional User DN: OU=jira

User Object filter: (&(objectCategory=Person)(sAMAccountName=*)(!(cn=*{*}*)))


Second LDAP directory scans OU=disabled,dc=company,dc=local

Base DC: OU=Disabled,DC=company,DC=local

Additional User DN: empty

User Object filter: (&(objectCategory=Person)(sAMAccountName=*)(!(cn=*{*}*)))


The problem is if user with same displayname and cn (canonical name) exists in both OU=jira,dc=company,dc=local and OU=disabled,dc=company,dc=local

it's shown as duplicate under JIRA users


Someone had same issue here

But i don't know how to write filter to remove duplicate users.



1 answer

1 accepted

0 votes
Answer accepted

Atlassian has some documentation on merging the duplicate accounts here - but I might recommend cleaning up the duplicate accounts via AD instead.


Atlassian also has some documentation on writing filters for LDAP here -

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