What problem does it solve?
This Skill helps you set up Clerk Organizations so users can work within separate teams (tenants) with correct org-scoped routing and access control.
Core Features & Use Cases
- Multi-tenant Organization Setup: Create organizations, switch org context, and scope routes and data using orgId and orgSlug.
- Org Role-Based Access Control (RBAC): Enforce access with
has({ role }) and has({ permission }), including canonical System Permission slugs.
- Member Lifecycle Management: Invite members, manage roles, and list/revoke invitations using Clerk APIs or built-in UI components.
- Enterprise SSO per Organization: Configure per-org SAML/OIDC with
strategy: 'enterprise_sso' and access provider metadata from the correct nested fields.
- Next.js Org Safety Patterns: Add slug invariants and protect routes in middleware and server actions to prevent cross-org data writes.
Quick Start
Enable Organizations in the Clerk Dashboard, then implement an org-aware dashboard by reading orgId/orgSlug from auth() and gating org-specific pages using has({ role: 'org:admin' }).