Quick Start
Set up roles & permissions to model your authorization requirements. Then use the SDK to make access checks from your application.
To get the most out of this guide, you should have:
- A WorkOS account
- Your WorkOS API Key
In this guide, we’ll implement role-based access control for a simple B2B video sharing SaaS application, where users can view and create videos, and elevated roles can manage other users’ roles and application settings.
We will:
- Map your application’s access management model to a set of roles
- Define permissions to control granular access to your application’s resources
- Associate permissions with roles, and configure default roles and priority order
- If using AuthKit, assign roles to organization memberships and determine access via the session JWT
- If using standalone SSO, access user roles through the SSO Profile object
- If using standalone Directory Sync, access user roles through the Directory User object
- Role
- Represents a logical grouping of access management rules.
The first step to RBAC is to define
Get provider-specific instructions by selecting the directory provider you want to test: