How to Set "Place" and "Associated Contact" When Creating a Local Test User

Hi CHT Community,

After setting up my CHT local development environment,
In the process of creating a test offline user via the Admin interface, I’m encountering an issue as below:

When trying to add a user (username: test), I fill in all the fields like Full Name, Email, Phone, Role, and Password. However, I cannot submit the form because two fields are required: Place and Associated Contact.

These fields are required but not selectable or manually enterable at the moment.
Below is a quick look at what I filled:

Both Place and Associated Contact are blocking the submission, and I’m unsure how to set them properly in a fresh development setup.

Could someone please guide me on this :slightly_smiling_face:

Thank you

:+1: You are on the correct track here. The piece you are missing is that CHT users must be associated with a person and place that already exist in the contact hierarchy for that CHT instance. That hierarchy can be built out via the main webapp (accessible via the “Application” button in the top-right):

  • From the “People” tab, select the “New health facility” button.
  • Choose “Create a new person”, fill out some random details and click “Next” and then “Submit”

Then, you can go back to the “App Management” console (via the button in the side-bar) and add a new user. The “Place” for the user should be the new heath facility you added and the “Associated contact” should be the new person. (The text boxes are search-enabled so as you type the contact name in the box, it should pop a result showing the contact you created.)

Thank you @jkuester
I have been able to create the test user

3 Likes