---
title: "OrganizationMember"
description: "The `OrganizationMember` entity."
section: "Reference"
group: "Types"
order: 163
---

## Definition

```ts
interface OrganizationMember {
  id: string;
  organizationId: string;
  userId: string;
  role: "viewer" | "editor" | "admin";
  createdAt: string;
}
```

## Fields

| Field            | Type                              | Notes                                                                       |
| ---------------- | --------------------------------- | --------------------------------------------------------------------------- |
| `id`             | `string`                          | `readonly` `required`                                                       |
| `organizationId` | `string`                          | `required` — Organization the membership is in.                             |
| `userId`         | `string`                          | `required` — User represented by this membership.                           |
| `role`           | `"viewer" \| "editor" \| "admin"` | `required` — Member role within the organization.                           |
| `createdAt`      | `string`                          | `readonly` `required` — ISO-8601 timestamp when the membership was created. |
