How do I download ALL my users from the App?
Hi @Gerald - thanks for the question?
While I’ll try and answer this in a more generic sense, any specific use case details you can provide will really help us provide a more applicable answer.
However, at a high level:
- To download all your data in native CouchDB format, you can use the backup process to copy all the data locally. This of course will only be readable by a clone CHT instance you backed up from (see restore)
- To sync all your data to view in a dashboard, run SQL queries over and the like, you can set up CHT Sync.
- To explore all your data as is, in place, you can look at the CouchDB Fauxton instance that ships with every CHT install. It is available at
_utilspath, so that’d behttps://YOUR_CHT_INSTANCE/_utils/. You’ll need to login as an admin user first. - CouchDB has native support for replication which you could set up to have a clone of your CHT’s CouchDB
Please let us know if these didn’t answer your question or how we can otherwise assist you!
To add to the different generic options provided by @mrjones above, there is also an API endpoint which can be used to fetch the list of users and save it in JSON format:
Once you are logged in as an admin user, you can go to this URL on your browser:
https://<your_cht_instance>/api/v2/users
You will be able to see the list of users with some information such as the associated place and roles. From there, you can right click and then “Save as” a JSON file containing the users list.
Great point - thanks @binod !