Back

Dashboard permissions

  • 0
  • Flutter
  • Databases
  • Tools
  • Auth
  • Cloud
Marco Napoli
27 Dec, 2024, 21:43

I am setting up a new Database and there will be different authenticated users that need to only create, read, update and delete only their own records.

In the Dashboard do I add to permissions Users role and check the create, read, update and delete options? Is this how you setup the rules? Or nothing here?

In my Flutter code I am using:

TypeScript
Permission.read(Role.user(idUser)),
Permission.write(Role.user(idUser)),

Is this the correct combination? In Firebase and Supabase you setup the rules in the Dashboard panel, not in code.

I want to make sure this is done correctly.

Thank you.

TL;DR
- Developer setting up new Database for different authenticated users with restricted CRUD permissions - Asks if Permission.read() and Permission.write() should be added to specific methods in Appwrite - Seeks clarification on setting up permissions in the Dashboard and using Permission.read() and Permission.write() in Flutter code - Wants to ensure correct setup for user-specific record access **Solution:** Yes, Permission.read() and Permission.write() need to be added to createDocument(), updateDocument(), deleteDocument() Appwrite methods. In the Dashboard, add Permissions to User role and check create, read, update, and delete options. In Flutter code, use
Marco Napoli
27 Dec, 2024, 21:45

ps: I am assuming that the Permission.read() and Permission.write() must be added to the createDocument(), updateDocument(), deleteDocument() Appwrite methods?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more