Hi team
I have scenarios
- I have a collection
- User can read all of documents in the collection
- User can create documents on the collection
- User can edit/update documents that their created (only users own)
- User cannot edit other user document
How to setup the roles for this scenarios?
Thank you
Set collection Roles:- select users and tick create and read, make sure you have enabled document security. And while creating documents pass the list of permissions which contains Permission.update(Role.user(current_user_id)), Permission.delete(Role.user(current_user_id))
You don’t actually have to pass the Permissions - the creating user automatically has all permissions on the Document
@ideclon oh okay
Recommended threads
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Need Help with Google OAuth2 in Expo usi...
I'm learning React Native with Expo and trying to set up Google OAuth2 with Appwrite. I couldn't find any good docs or tutorials for this and my own attempt did...