---
title: "Membership (Groups)"
description: "The state of a Person belonging to a Group."
---

> Documentation Index
> Fetch the complete documentation index at: https://planningcenterkit.mackenly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Membership (Groups)

The state of a `Person` belonging to a `Group`.

A `Person` can only have one active `Membership` to a `Group` at a time.

| Property | Value |
| --- | --- |
| Product | [Groups](/reference/groups/) (`pco.groups`, API version `2026-11-10`) |
| Resource type | `Membership` |
| TypeScript | `Groups.Membership`, attributes `Groups.MembershipAttributes`, schema `Groups.MembershipSchema` |
| Planning Center path | `/groups/v2/memberships` |
| Planning Center docs | [Membership](https://api.planningcenteronline.com/docs/apps/groups/versions/2026-11-10/vertices/membership) |

## How to reach it

| Client path | Returns | Filters | Create |
| --- | --- | --- | --- |
| `pco.groups.memberships` | Collection | `group`, `leader`, `person` | No |
| `pco.groups.groups.id(groupId).memberships` | Collection |  | Yes |
| `pco.groups.groups.id(groupId).my_membership` | Collection |  | No |
| `pco.groups.people.id(personId).memberships` | Collection |  | No |

From a collection, `.id(membershipId)` addresses one Membership: `pco.groups.memberships.id(membershipId)`. Collections support [`where`, `include`, `order`, and pagination](/guides/querying/); single resources have `get()`.

## Attributes

On `Groups.MembershipAttributes`. Every resource also has `id` and `type` (`'Membership'`) next to its attributes.

| Name | Type | Description |
| --- | --- | --- |
| `joined_at` | `string \| null` | The date and time the person joined the group. |
| `role` | `string \| null` | The role of the person in the group. Possible values: `member` or `leader` |

## Relationships and includes

Side-load with `include()` (or `get({ include })`) and read with `related(resource, name)`: `group`, `person`.

| Relationship | Type | To | Includable |
| --- | --- | --- | --- |
| `group` | To one | [Group](/reference/groups/group/) | Yes |
| `person` | To one | [Person](/reference/groups/person/) | Yes |

## Querying

### Where

`where(field, value)` for equality; `where(field, op, value)` with the operators listed.

| Field | Value type | Operators |
| --- | --- | --- |
| `role` | `string` | Equality only |

### Order

`order(...)` accepts these fields, ascending, or descending with a `-` prefix: `first_name`, `joined_at`, `last_name`, `role`.

### Filters

`filter(...)` names depend on the edge you query through:

| Edge | Filters |
| --- | --- |
| `pco.groups.memberships` | `group`, `leader`, `person` |

## Edges

Follow these from one Membership, `ref = pco.groups.memberships.id(membershipId)`:

| Edge | Leads to | Returns | Filters | Create |
| --- | --- | --- | --- | --- |
| `ref.group` | [Group](/reference/groups/group/) | Collection |  | No |
| `ref.person` | [Person](/reference/groups/person/) | Collection |  | No |

## Writing

| Property | Value |
| --- | --- |
| Create | Yes, `create()` on `memberships` on [Group](/reference/groups/group/) |
| Update | Yes, `update()` on a reference |
| Delete | Yes, `delete()` on a reference |

### Create attributes

Typed as `Groups.MembershipSchema['create']`.

| Attribute | Type |
| --- | --- |
| `joined_at` | `string \| null` |
| `person_id` | `string` |
| `role` | `string \| null` |

### Update attributes

Typed as `Groups.MembershipSchema['update']`.

| Attribute | Type |
| --- | --- |
| `joined_at` | `string \| null` |
| `role` | `string \| null` |

See [Writing data](/guides/writing-data/).

## Example

```ts
import type { Groups } from '@mackenly/planningcenterkit';

const page = await pco.groups.memberships.order('first_name').perPage(25).list();
const items: Groups.Membership[] = page.data;
```

Source: https://planningcenterkit.mackenly.com/reference/groups/membership/index.mdx
