Back

permission for a user

  • 0
  • Users
  • Databases
khang
16 Apr, 2023, 02:41

How can I grant permission for a user to add data to a table in a way that only that user can delete/edit/view the data they added?

TL;DR
The user wants to grant permissions for a specific user to add data to a table and ensure that only that user can delete, edit, and view the data they added. They initially thought granting permissions would apply to all users. The solution is to grant the user create permissions on the collection and enable document-level security. This way, when the user creates a document, they will have exclusive access to read, update, and delete the data they added.
Drake
16 Apr, 2023, 04:01

You would need to grant users create permissions on a collection and then turn on document level security on on the collection. When the user creates a document on the collection, it will default to grant them read, update, and delete access on the document

khang
16 Apr, 2023, 04:08

thanks. I thought it would grant permissions to all users to operate, not just the user who created it.

Drake
16 Apr, 2023, 05:34

It should be only create for users

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more