earlier I asked the question and I got the theoretical solution but then I am trying to create a user it's giving me an error
curl -X PUT http://admin:password@localhost:5984/_users/org.couchdb.user:jan \
-H "Accept: application/json" \
-H "Content-Type: application/json" -d "{\"name\": \"jan\", \"password\": \"apple\", \"roles\": [], \"type\": \"user\"}"
{"error":"forbidden","reason":"Doc ID must be of the form org.couchdb.user:name"}