# The Backend OrganizationMembership object

The Backend `OrganizationMembership` object is similar to the [OrganizationMembership](https://clerk.com/docs/reference/types/organization-membership.md) object as it's the model around an Organization membership entity and describes the relationship between users and Organizations. However, the Backend `OrganizationMembership` object is different in that it's used in the [Backend API](https://clerk.com/docs/reference/backend-api/model/OrganizationMembership){{ target: '_blank' }} and is not directly accessible from the Frontend API.

## Properties

| Property                                       | Type                                                                                                                                 | Description                                                                                                                                                                     |
| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a id="createdat"></a> `createdAt`             | `number`                                                                                                                             | The date when the membership was first created.                                                                                                                                 |
| <a id="id"></a> `id`                           | `string`                                                                                                                             | The unique identifier for the membership.                                                                                                                                       |
| <a id="organization"></a> `organization`       | [`Organization`](https://clerk.com/docs/reference/backend/types/backend-organization.md)                                             | The Organization that the user is a member of.                                                                                                                                  |
| <a id="permissions"></a> `permissions`         | `string[]`                                                                                                                | The Permissions granted to the user in the Organization.                                                                                                                        |
| <a id="privatemetadata"></a> `privateMetadata` | [OrganizationMembershipPrivateMetadata](https://clerk.com/docs/reference/types/metadata.md#organization-membership-private-metadata) | Metadata that can be read and set only from the [Backend API](https://clerk.com/docs/reference/backend-api){{ target: '_blank' }}.                                              |
| <a id="publicmetadata"></a> `publicMetadata`   | [OrganizationMembershipPublicMetadata](https://clerk.com/docs/reference/types/metadata.md#organization-membership-public-metadata)   | Metadata that can be read from the Frontend API and [Backend API](https://clerk.com/docs/reference/backend-api){{ target: '_blank' }} and can be set only from the Backend API. |
| <a id="publicuserdata"></a> `publicUserData?`  | <code>null | <a href="#organization-membership-public-user-data">OrganizationMembershipPublicUserData</a></code>                     | Public information about the user that this membership belongs to.                                                                                                              |
| <a id="role"></a> `role`                       | `string`                                                                                                                             | The Role of the user.                                                                                                                                                           |
| <a id="updatedat"></a> `updatedAt`             | `number`                                                                                                                             | The date when the membership was last updated.                                                                                                                                  |

### `OrganizationMembershipPublicUserData`

| Property                             | Type                       | Description                                                                                                                                                               |
| ------------------------------------ | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <a id="firstname"></a> `firstName`   | `null | string` | The first name of the user.                                                                                                                                               |
| <a id="hasimage"></a> `hasImage`     | `boolean`                  | Whether the user has a profile picture.                                                                                                                                   |
| <a id="identifier"></a> `identifier` | `string`                   | The identifier of the user.                                                                                                                                               |
| <a id="imageurl"></a> `imageUrl`     | `string`                   | Holds the default avatar or user's uploaded profile image. Compatible with Clerk's [Image Optimization](https://clerk.com/docs/guides/development/image-optimization.md). |
| <a id="lastname"></a> `lastName`     | `null | string` | The last name of the user.                                                                                                                                                |
| <a id="userid"></a> `userId`         | `string`                   | The ID of the user that this public data belongs to.                                                                                                                      |

---

## Sitemap

[Overview of all docs pages](https://clerk.com/docs/llms.txt)
