Hey ! I have a collection with document level protection. My permission levels are something like Admin - Group[N] - SubGroup[N]
When the end user from SubGroup[N] creates a document, i need to make sure that the parent group can read/write it as well - but none of the parallele sub-groups. Since the user is Not a member of Group[N] - He cant Set these permissions.
What are the best practices doing so?
i thought of
- Save the document using the API key -> dangerouse -> security must be controlled on my app. to avoid such fake requests
- create an Appwrite function -> After creating, the document - the function will add the parents groups
Any other ideas?
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...