Learn how to use the Row Level Security in Superdev
department
matches the record’s department
can access).role
admin
department
(field in the documents table)department
(user’s department from their profile)department: "Engineering"
can only see documents where the document’s department
field equals “Engineering”.
role
admin
role: "admin"
can view the user management entity.
team_id
team_id
role
project_manager
Tip: You can combine multiple rules for fine-grained access control. For example, allow all users to read, but only creators or admins to edit or delete.