Closed ccfiel closed 11 years ago
I got confused by that too. Its a slightly cryptic couchdb error message. The name field and the userid must match. Name is actually username, not full name.
Try
curl -X PUT -u adminuser:adminpassword http://tigito.iriscouch.com:80/_users/org.couchdb.user:ccfiel -d '{"name":"ccfiel", "password":"qwerty", "roles":["reporter", "reader"], "type":"user"}' -H "Content-Type: application/json"
I plan to try and add the ability to add users through acralyzer asap. Unless @KevinGaudin gets to it first.
@halkeye Thanks it works!! :+1:
I have updated the wiki pages with [newusername] in both the user id and name.
Hello I have followed the instruction how to install acralyzer but I was stuck in adding a 'report' user. Every time I create a report user this is the error displayed {"error":"forbidden","reason":"Doc ID must be of the form org.couchdb.user:name"}
this is the command I executed to add report user: curl -X PUT -u adminuser:adminpassword http://tigito.iriscouch.com:80/_users/org.couchdb.user:ccfiel -d '{"name":"Chris", "password":"qwerty", "roles":["reporter", "reader"], "type":"user"}' -H "Content-Type: application/json"
I am using Iriscouch services for my couchDB. Any ideas what went wrong?
Chris Ian