Confluence displays UnknownUser<username> after migrating users from Delegated Directory to Confluence Internal Directory

hello all, I have implemented Custom authenticator for Confluence. As part of this I'm migrating all users from Delegated LDAP Directory to  Confleunce Internal Directory. I see a vague Unknown User<username> in all pages for all users..

I have executed following SQL Statements to migrate from LDAP Directory to Internal Directoru


UPDATE cwd_user SET directory_id = <destinationid> WHERE directory_id = <sourceid>;
UPDATE cwd_group SET directory_id = <destinationid> WHERE directory_id = <sourceid>;

UPDATE cwd_membership SET parent_id= <destinationid> WHERE parent_id= <sourceid>;
UPDATE cwd_group_attribute SET directory_id = <destinationid> WHERE directory_id = <sourceid>;
UPDATE cwd_user_attribute SET directory_id = <destinationid> WHERE directory_id = <sourceid>;


I have re-indexed the confluence But I still see the same issue


Any ideas/thoughts to fix the UnknownUser<username> 



3 answers

Hi Karanam,

Could you please explain why you modified the value in cwd_membersip table? Because the mentioned table does not contain directory_id in it? Also, could you please let us know if you are able to confirm that the users has been migrated once you access their profile from:

Confluence Administrators Menu >> Users >> 

Finally, is any users that has tried to login from LDAP still describe as unknowned users?

Sorry it is my mistake. It is not directory_id in cwd_membership but is parent_id .

May want to take a look at this question:

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

93 views 0 5
Read article

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