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 widget could not be displayed.

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
        WHERE
            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
This widget could not be displayed.

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)?

This widget could not be displayed.

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
Community showcase
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

542 views 7 6
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