Permission management for dependent collection to main collection
- 1
- Web
- Databases
- General
- Self Hosted
- REST API
What is the best approach to handle all the permission management in this scenario? Let’s say I have three different collections. Client collection, follow up collection and health collection.
Client collection: support document level permissions. When creating document i will add users who can access as permissions
Followups and Healths collection will have clientId as attributes.
Where the user can access any client in clients collection, they can only access Followup and Healths which contains the clientId that they can access in clients collection.
- Option1: making followup and health collection to support document level permission. it will be lot of permissions data and handle updates of clients will also have to require to update follow up and health collection
- Option2: only client support document level permission. When accesing follow up or health. Must check user first based on clients document permission which clients that user can access. Then listing all one by one based on equal conditions clientId=xxxx
Additional: more collection like followup and healths which are dependent on Client.
Please share your thoughts
Recommended threads
- THE COLUMNS STUCK ON PROCESSING HOW DO I...
I HAVE SELF HOSTED THE APPWRITE ON VPS
- Update row sheet not loading
After right clicking a row header and click update, the sidebar fails to load (never-ending skeleton)
- Impossible to create project via CLI?
Is it possible to create a new project via the appwrite CLI ? I need to create a few projects for something I'm working on and because i don't want to do it man...