
I'm new to AppWrite and am currently working on a personal Vue project. I'm interested in implementing a permission system that enables users to access the documents they create while restricting other users to only read, update, and delete the documents they themselves have created. How can I accomplish this?

Have you read the permission docs? https://appwrite.io/docs/permissions

yes I have

So what are you thinking after reading the docs?

It's explaination is clear

I gave access to users to read, create, update and delete documents under a collection, I also enabled document security

The aspect I find difficult is, I don't want users to access things created by other users. For example, let's say it's a Todo app, with authentication. When a user logs in, he/she sees todo's created by him/herself, not someone else Todo.

That's what I trying to get 🥲

If you give users full CRUD access at the collection level, every user can update and delete every document

Yeah 👌

So... Don't do that

Okay, how do I make sure it's just the authorized logged in user that has crud access?

For example: When a user logs in, he/she should have crud access to messages created by them.

Document level permissions. And see https://appwrite.io/docs/advanced/platform/permissions#default-values

Okay thanks, I will look into this and provide feedback.

I removed permissions from collection level and enabled document security, but I get an unauthorised error

What operation are you doing? Does the user have access to perform the action?

It's a create operation

Since it's showing an unauthorized error I guess not

Hello Steven, I wanted to express my gratitude for your help and your patience. Finally, I've found the solution I was looking for, by following your instructions.

[SOLVED] permission
Recommended threads
- Queries Length Error.
Hi All, I am having a issues across my app with how i am getting data, and just wanted to check if this was an issues with the new changes on appwrite over the...
- My projects archived. Did not see the up...
Kindly restore project for me: 67680a26001bdf36beb8 You can delete: 678c96ba00305f78bb13 675d05040004853fb43f
- My projects archived. Did not see the up...
Kindly restore these two projects for me 66d6f4270037aafe3c39 and 663fdf520017d2d0f4e8 You can delete 66887997000e2c5b7e49
