Overview
Collection rule management requires superadmin authentication.
Get Collection Rules
Get the access rules and field permissions for a specific collection:Update Collection Rules
Update the access rules and field permissions for a collection:Validate a Rule
Validate a rule expression before using it:Test a Rule
Test how a rule evaluates with a specific context:Rule Structure
Rules are defined with the following structure:Field Permissions
Field-level permissions control read/write access to specific fields:Common Patterns
Ownership-Based Access
Allow users to only access their own records:Role-Based Access
Allow access based on user roles:Group Membership
Allow access based on group membership:Field-Level Privacy
Restrict sensitive fields to admins:Complete Example
Collection rules editor:Next Steps
- Roles Service - Define roles and permissions
- Macros Service - Create reusable SQL macros
- Permissions - Understand the permission system