updateOrganizationMembershipMetadata()
Updates the metadata associated with a user's organization membership.
const organizationId = 'my-organization-id'; const userId = 'my-user-id'; const update = clerkClient.organizations.updateOrganizationMembershipMetadata(organizationId, userId, { publicMetadata:{ "example": "metadata" } });
UpdateOrganizationMembershipMetadataParams
Name | Type | Description |
---|---|---|
organizationId | string | The ID of the organization this membership belongs to. |
userId | string | The user ID associated with the metadata being updated. |
publicMetadata? | Record<string, unknown> | Metadata saved on the organization, that is visible to both your Frontend and Backend APIs. |
privateMetadata? | Record<string, unknown> | Metadata saved on the organization that is only visible to your Backend API. |