Take the 2-minute tour ×

I'm trying to determine what users have been created.

is there a curl command in couch to list all existing couchdb users?

if so what is it is that curl call?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

curl gets all users as documents, grep extracts documents _id, sed strips org.couchdb.user: prefix and sort removes duplicates that comes from view result:

curl -s http://localhost:5984/_users/_all_docs | grep -o 'org.couchdb.user:[[:alnum:]]\+' | sed -n -e 's/org.couchdb.user:\(.*\)/\1/p' | sort -u

Note, that since 1.2.0 release if you had fixed Admin Party on server, you need to pass CouchDB admin credentials to make such requests for _users database.

share|improve this answer
awesome thanks! –  Kristian Nov 12 '12 at 4:28
add comment

Your Answer


