Skip to main content

getInstanceOrganizationMembershipList()

Gets the list of Organization memberships for the instance. By default, the list is returned in descending order by creation date (newest first).

Returns a PaginatedResourceResponse object with a data property containing an array of OrganizationMembership objects and a totalCount property containing the total number of Organization memberships for the instance.

Tip

To get the list of Organization memberships for a specific Organization, use getOrganizationMembershipList().

function getInstanceOrganizationMembershipList(params: GetInstanceOrganizationMembershipListParams): Promise<PaginatedResourceResponse<OrganizationMembership[]>>
  • Name
    limit?
    Type
    number
    Description

    Maximum number of items returned per request. Must be an integer greater than zero and less than 501. Can be used for paginating the results together with offset. Defaults to 10.

  • Name
    offset?
    Type
    number
    Description

    Skip the first offset items when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with limit. Defaults to 0.

  • Name
    orderBy?
    Type
    WithSign<"phone_number" | "email_address" | "created_at" | "first_name" | "last_name" | "username">
    Description

    Filters Organization memberships in a particular order. Prefix a value with + to sort in ascending order, or - to sort in descending order. Defaults to -created_at.

Note

Using clerkClient varies based on the SDK you're using. Refer to the overview for usage details, including guidance on how to access the userId and other properties.

const response = await clerkClient.organizations.getInstanceOrganizationMembershipList()

Backend API (BAPI) endpoint

This method in the SDK is a wrapper around the BAPI endpoint GET/organization_memberships. See the BAPI reference for more information.

Feedback

What did you think of this content?

Last updated on