getOrganizationMembershipList()
Retrieves a list of memberships for an organization.
const organizationId = 'my-organization-id'; const memberships = await clerkClient.organizations.getOrganizationMembershipList({ organizationId });
GetOrganizationMembershipListParams
Name | Type | Description |
---|---|---|
organizationId | string | The ID of the organization to retrieve the list of memberships from. |
limit? | number | The number of results to return. Must be an integer greater than zero and less than 500. |
offset? | number | The number of results to skip. |
Examples
getOrganizationMembershipList({ limit })
Retrieves orgnanization membership list that is filtered by the number of results.
const organizationId = 'my-organization-id'; const memberships = await clerkClient.organizations.getOrganizationMembershipList({ organizationId, // returns the first 10 memberships limit: 10, });
getOrganizationMembershipList({ offset })
Retrieves orgnanization membership list that is filtered by the number of results to skip.
const organizationId = 'my-organization-id'; const memberships = await clerkClient.organizations.getOrganizationMembershipList({ organizationId, // skips the first 10 memberships offset: 10, });