RBAC (Role-Based Access Control) is a permission system where users are assigned roles (Admin, Editor, Viewer) and each role has specific permissions (can edit, can delete, can invite). Instead of setting permissions per user, you group permissions into roles and assign roles to users. Simplifies permission management for teams and multi-tenant apps.
Use RBAC when building team collaboration tools, B2B SaaS with multiple users per account, or any app where different users need different access levels. Start simple (Owner, Member) and add roles as needed (Admin, Viewer, Billing). Don't over-engineer—most apps need 3-5 roles max. For complex enterprise needs, consider ABAC (Attribute-Based Access Control) or tools like Permit.io, Oso.
Cybersecurity
Control who can do what in your app