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
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

66 views 3 2
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