This is probably different in every database you specify. Here's how it works in CouchDB.
CouchDB lets you manage users and roles.
You can use the validate_doc_update function in your project documents to restrict document creation / updating. For example, you can write a confirmation that refuses to update the document to anyone except its author.
To limit who can read documents from the database, you can edit the document /db_name/_security and specify users or roles.
However, I do not think that you can make read access more detailed (that is, allow the user to read only the documents they created).
To achieve this, you must place CouchDB behind a proxy server and use document serving views for authenticated users. You can still use CouchDB user management. The proxy server simply hides direct access to the database.
For more information, check out the review on the CouchDB wiki , in the book Relax and this short screencast .
Tomas sedovic
source share