A step-by-step walkthrough of going from hard-coded checks to clean roles, groups, folders, and feature flags.
Create roles globally (Admin, Editor, Viewer). Permissions are resource-type specific — define what each role can do on Repository, Document, etc.
Create resources (like repositories, documents). Then assign users to roles on those specific resources.
Who has what role on this resource?
Call check() in your code. Use the Audit Pane to see exactly why access was granted or denied.
Gate features like advanced_reporting by plan or user segment.
Share a folder with a team. All documents inside inherit access automatically.
Explore these patterns live in the playground or book a migration review.