Switch tenant context
A SaaS dashboard serves multiple customer workspaces and users need to change workspace context.
Clerk · Component
OrganizationSwitcher is a Clerk component for multi-tenant apps. It lets signed-in users create, switch between, and manage organizations from the application UI.
OrganizationSwitcher is a prebuilt Clerk UI component for applications that use Organizations. It presents the signed-in user with controls to create an organization, switch the active organization, and manage organization settings, making organization context readily available in app navigation.
<OrganizationSwitcher />Renders a Clerk organization switcher UI component.
import { OrganizationSwitcher } from '@clerk/nextjs'
export default function Header() {
return <OrganizationSwitcher />
}Render it in a header or navigation so signed-in users can create, switch between, and manage their organizations.
A SaaS dashboard serves multiple customer workspaces and users need to change workspace context.
A user needs to start a new team directly inside the product.
An application gives organization members a central place to manage their current organization.
OrganizationSwitcher is a prebuilt component that lets users create, switch between, and manage Organizations. It is intended for multi-tenant applications where users work in different organization contexts.
Follow-up: How would you expose the active organization outside the component? Use Clerk's organization APIs or hooks to read the current active organization and apply that context to application data and authorization.
The component should generally be placed in an application's header or navigation. That placement keeps organization switching available while users move through the application.
Follow-up: What design concern follows from this placement? The surrounding layout should provide enough space for the switcher and preserve access on responsive screen sizes.
Organizations group users with roles and permissions for multi-tenant applications. Users can belong to multiple organizations, and the switcher changes which organization is active in the session context.
Follow-up: How can the active organization be used server-side? In a Next.js application, use Clerk's server-side client to retrieve organization information for the active organization or an organization ID.
CreateOrganizationOrganizationProfileOrganizationListInviteMembersButtonuseOrganizationclerkClientOrganizations