clerk-orgs

Manage multi-tenant B2B SaaS organizations with role-based access and SSO.

3|Updated Sep 20, 2025
One-click install
npx skills add https://github.com/domhhv/smartext --skill clerk-orgs-domhhv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clerk-orgs
Source: https://github.com/domhhv/smartext/tree/main/.agents/skills/clerk-orgs
Command: npx skills add https://github.com/domhhv/smartext --skill clerk-orgs-domhhv

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @clerk/nextjs, @clerk/react, @clerk/astro, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables the creation and management of multi-tenant B2B SaaS organizations, providing features like org switching, role-based access, verified domains, and enterprise SSO for team workspaces and member management.

Core Features & Use Cases

  • Multi-Tenant Organizations: Create and manage organizations with org switching and role-based access.
  • Role-Based Access Control: Implement fine-grained access control with custom roles and permissions.
  • Verified Domains: Use verified domains for secure sign-in and auto-join for users from specific domains.
  • Enterprise SSO: Integrate with SAML/OIDC for secure single sign-on.
  • Use Case: Ideal for B2B SaaS applications that require team workspaces, RBAC, org-based routing, and member management.

Quick Start

Enable Organizations in the Clerk Dashboard, create an organization, and manage members and roles.

Frequently Asked Questions about clerk-orgs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement multi-tenant organizations with role-based access in a B2B SaaS app?

Multi-tenant organizations with role-based access are created by enabling organizations in the Clerk Dashboard, then using the API to manage members, custom roles, and permissions for team workspaces.

Can I use Clerk to set up enterprise SSO and verified domains for B2B SaaS?

Yes, you can use Clerk to set up enterprise SSO and verified domains. It supports SAML and OIDC integrations for secure single sign-on and auto-join for users from specific verified domains.

Does the Clerk multi-tenant organization setup support Next.js, React, and Astro?

The Clerk multi-tenant organization setup supports Next.js, React, and Astro. It integrates directly using the @clerk/nextjs, @clerk/react, and @clerk/astro SDKs for organization management.

What's the best way to manage organization switching and member routing in B2B SaaS?

Managing organization switching and routing is best handled using Clerk's organization features. It provides built-in org switching and org-based routing to manage team workspaces and members.

Do I need to configure the Clerk Dashboard before implementing role-based access control?

You must configure the Clerk Dashboard before implementing role-based access control. Enabling organizations in the dashboard is required to manage members and custom roles via the API.