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
- Failed to retrieve access token from Git...
Hi, I have problem to connect to github repository. I make configuration based on docs: https://appwrite.io/docs/advanced/self-hosting/functions I tested it on...
- [SOLVED] Password Recovery Emails Not Se...
Hey everyone! 👋 I'm currently facing an issue with the password recovery feature in my Appwrite-based application. I'm using Appwrite's built-in email solutio...
- Attribute Processing
I would really like to not have to create this collection for the 7th time. How do I get the attribute to move from processing to either be deleted or an actua...