# User accounts available in couchdb but not working

**URL:** <https://forum.communityhealthtoolkit.org/t/user-accounts-available-in-couchdb-but-not-working/4865>\
**Category:** Technical Support\
**Created:** [April 16, 2025, 6:39am UTC](https://forum.communityhealthtoolkit.org/t/user-accounts-available-in-couchdb-but-not-working/4865 "2025-04-16T06:39:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edwin](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/edwin/32/3935_2.png) [@Edwin](https://forum.communityhealthtoolkit.org/u/Edwin)\
**Post date:** [April 16, 2025, 6:39am UTC](https://forum.communityhealthtoolkit.org/t/user-accounts-available-in-couchdb-but-not-working/4865/1 "2025-04-16T06:39:16Z")

</div>

Hi ,  
I have been facing a challenge of user accounts being available in the couchdb \_users database but not available in the admin side in the frontend.

 ![image](https://communityhealthtoolkit.b-cdn.net/uploads/default/original/2X/4/4762b6a913eac8c5a0d49ed8644fda734afce860.png)  
 ![image](https://communityhealthtoolkit.b-cdn.net/uploads/default/original/2X/c/cae40e323aca085c72c25f417d67a2fc27bf529e.png)  
But this same user is not available in the frontend on the admin side.  
 ![image](https://communityhealthtoolkit.b-cdn.net/uploads/default/original/2X/5/5b3e49a5a3b21a87ccb9dc8dad0ad9886cfeda9f.png)

Their credentials login but this is what is displayed.

 ![image](https://communityhealthtoolkit.b-cdn.net/uploads/default/original/2X/0/01804d6bf2fdfc59ea303ce71d723423c5e389fe.png)

What could be causing this. This happened after replication of user accounts with the same role vht

---

<div class="post-metadata">

**Author:** ![diana](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/diana/32/2049_2.png) [@diana](https://forum.communityhealthtoolkit.org/u/diana)\
**Post date:** [April 16, 2025, 8:39am UTC](https://forum.communityhealthtoolkit.org/t/user-accounts-available-in-couchdb-but-not-working/4865/2 "2025-04-16T08:39:26Z")

</div>

Hi @Edwin

In the CHT, a user account has two components, one in the `_users` database, and one in the `medic` database, and both are required.  
How did you create this user?

---

<div class="post-metadata">

**Author:** ![Edwin](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/edwin/32/3935_2.png) [@Edwin](https://forum.communityhealthtoolkit.org/u/Edwin)\
**Post date:** [April 17, 2025, 6:18am UTC](https://forum.communityhealthtoolkit.org/t/user-accounts-available-in-couchdb-but-not-working/4865/3 "2025-04-17T06:18:07Z")

</div>

Hi @diana

Thankyou for the prompt response.

We did both a medic database and \_user replication. These are users what we brought in from another instance with their data.

---

<div class="post-metadata">

**Author:** ![diana](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/diana/32/2049_2.png) [@diana](https://forum.communityhealthtoolkit.org/u/diana)\
**Post date:** [April 17, 2025, 1:08pm UTC](https://forum.communityhealthtoolkit.org/t/user-accounts-available-in-couchdb-but-not-working/4865/4 "2025-04-17T13:08:48Z")

</div>

Can you please check whether or not you have the corresponding docs in both databases?

---

<div class="post-metadata">

**Author:** ![Edwin](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/edwin/32/3935_2.png) [@Edwin](https://forum.communityhealthtoolkit.org/u/Edwin)\
**Post date:** [April 22, 2025, 8:29pm UTC](https://forum.communityhealthtoolkit.org/t/user-accounts-available-in-couchdb-but-not-working/4865/5 "2025-04-22T20:29:19Z")

</div>

Hi @diana  
Thankyou for your Help. The accounts finally showed up.

The was because the data replication was not complete. So i did a data replication afresh of the medi database this time initiated from the Target and not the source.
