RBAC (Role-Based Access Control)

Overview

RBAC grants permissions based on assigned roles rather than direct user-to-permission mappings.

RBAC Model

flowchart LR U[User] --> R[Role] R --> P[Permission] P --> RES[Resource Access]

Practical Example

roles: viewer: - report.read editor: - report.read - report.write admin: - report.*

Production Example

A SaaS platform typically maps tenant support staff to read-only roles while operations engineers receive scoped incident management roles.

Common Pitfalls

Key Takeaways