Skip to content
Back

I would like to know if appwrite implements RLS or similar effects?

  • 0
  • Web
  • Databases
  • Auth
  • General
  • Cloud
Bret
18 Apr, 2025, 16:31

I would like to know if appwrite implements RLS or similar effects? My requirement is to allow users to create tasks. It's simple. But I want them to only create their own tasks and not impersonate other users. I found that RLS can solve this problem, but appwrite doesn't seem to have this function. I would like to achieve this without a backend.

TL;DR
Appwrite allows users to set permissions on both collections and individual documents. By configuring the settings, developers can control who can read, update, and delete documents. Developers can achieve the desired outcome of allowing users to create their own tasks and prevent impersonation using Appwrite's document security features without the need for a backend.
Meldiron
18 Apr, 2025, 16:33

Heyy 👋 In collection settings, you can enable "document security". This will allow you to set pemission not only on collection, but on document too.

Then, on collection you can set "create" to "users" - so all users can create tasks. But don't set "read"; so noone can actually read them.

Then, when creating document, you can set permission who can read/update/delete it. By default, this is set to current user, but you can also customize it to multiple users, or a team.

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