clerk-enterprise-rbac

Featured

Configure enterprise SSO, role-based access control, and organization management. Use when implementing SSO integration, configuring role-based permissions, or setting up organization-level controls. Trigger with phrases like "clerk SSO", "clerk RBAC", "clerk enterprise", "clerk roles", "clerk permissions", "clerk organizations".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Clerk Enterprise RBAC ## Overview Implement enterprise-grade role-based access control, organization management, and SSO with Clerk. Covers custom roles and permissions, organization lifecycle, multi-tenant access patterns, SAML/OIDC SSO, and the Backend API for programmatic role management (released Nov 2025). ## Prerequisites - Clerk Pro or Enterprise plan (Organizations + SSO require paid plan) - Organizations feature enabled in Clerk Dashboard > Organizations > Settings - Next.js 14+ with App Router (examples use `@clerk/nextjs`) ## Instructions ### Step 1: Enable Organizations and Add UI Components ```typescript // app/org-selector/page.tsx import { OrganizationSwitcher, OrganizationProfile } from '@clerk/nextjs' export default function OrgPage() { return ( <div className="p-8"> <h1>Select Organization</h1> <OrganizationSwitcher hidePersonal={false} afterSelectOrganizationUrl="/dashboard" afterCreateOrganizationUrl="/dashboard" /> <div className="mt-8"> <OrganizationProfile /> </div> </div> ) } ``` ### Step 2: Define Custom Roles and Permissions Configure in **Clerk Dashboard > Organizations > Roles** and **Permissions**. **Default roles (built-in):** | Role | Key | Built-in Permissions | |------|-----|---------------------| | Admin | `org:admin` | Full org management (members, settings, billing) | | Member | `org:member` | View org, read-only access | **Custom permissions (create in Dash...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category