security

Role-Based Access Control (RBAC)

RBAC is a permission model where you grant capabilities to roles — admin, editor, viewer — and assign users to roles, instead of attaching permissions to each person individually. A user's access is the sum of their roles' permissions, which keeps authorization manageable as your team and customer base grow. For SaaS builders, some form of RBAC is table stakes the moment customers have more than one seat: a company doesn't want every teammate able to delete the workspace or export billing data. It's also a recurring line on enterprise security questionnaires and a prerequisite for meaningful audit logs. Practical note: start simple with a few fixed roles; fully custom, granular permissions ("resource-level" or attribute-based access, ABAC) are far more work to build and reason about. Enforce roles on the server for every request — never rely on hiding buttons in the UI, since the API is what actually protects the data.

Related terms

More Security & Compliance terms