Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.dev

useOrganizations

Access methods for the Organization and related objects.

Overview

The useOrganizations hook gives you access to Organization and related object methods. Calling the hook will return an object structure with the available methods.

For now the available methods are: createOrganization, getOrganizationMemberships and getOrganization.

Usage

Make sure you've followed the installation guide for Clerk React or Clerk Next.js before running the snippets below.

The examples below illustrates simple usage of the methods available. Note that your component must be a descendant of the <SignedIn/> component, which in turn needs to be wrapped inside the <ClerkProvider/>.

A more guided approach can be found at the Organizations Popular Guide section.

1
1
1

Was this helpful?

Clerk © 2022