Create an organization
Organizations are created by your end users. Whichever signed-in user creates an organization takes on the Creator role for that organization.
There are two ways to create an organization:
- Using the
<CreateOrganization />
component - Using the
createOrganization()
method
Create an organization using the <CreateOrganization />
component
The simplest way to create an organization is to use Clerk's <CreateOrganization />
component. The <CreateOrganization />
component is used to render an organization creation UI that allows users to create brand new organizations within your application. See the component reference for more information.
Create an organization using the createOrganization()
method
If you would like to create an organization programmatically, you can use the createOrganization()
method. In React and Next.js applications, you can access the createOrganization
method via the useOrganizationList()
hook. In JavaScript applications, the same method is available directly on the Clerk
object. The createOrganization
method can also be accessed through the Backend SDK.
The only required parameter when creating a new organization is the organization name, which can be any string. You can also specify an optional slug for the new organization. If provided, the organization slug can contain only lowercase alphanumeric characters (letters and digits) and the dash "-". Organization slugs must be unique for the instance.
Feedback
Last updated on