When searching for users, the search shows duplicate personal spaces

We installed Confluence 4 and used the new AD directory server integration. This has caused us quite a bit of headache, and one of the lingering problems is that when you search for some users, the search shows two entries for their personal space. Both point to the same personal space, since there is only one active space for each user.

How can we prevent this from happening?

3 answers

1 accepted

This could be caused by a duplicate USERINFO content object, or a corrupted index. I'd suggest to try the following:

  1. Rebuild index from scratch
  2. Try search the following in Confluence:
    type:userinfo AND username:affectedUserName
    If they still return more than one, then you can query and delete it from the database
  3. Run this query:
    SELECT LOWER(c.username)
        FROM CONTENT c
            contenttype LIKE 'USERINFO' AND
            prevver IS NULL
        GROUP BY LOWER(username)
        HAVING count(*)>1;

  4. Delete it. It's quite similar to this known issue: https://confluence.atlassian.com/display/CONFKB/Duplicates+in+the+People+Directory

how many user repositories do you have? user entries may show up twiec if the user exists in mulitple repositories, possibly internal (old) users of same id vs ldap users (new)?

Some times just disabling the LDAP directory and creating it again might fix this issue, but if the root cause is a corrupted index I believe is necessary to rebuild index from scratch first.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

606 views 20 11
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you