*** id: ee06fdfb-1877-4530-a7d5-edfc0c231cc4 title: setMemberMeta slug: /node/reference/video/room-session/set-member-meta description: setMemberMeta method for the RoomSession class. max-toc-depth: 3 ---------------- ### setMemberMeta * **setMemberMeta**(`params`): `Promise` Assigns custom metadata to the specified RoomSession member. You can use this to store metadata whose meaning is entirely defined by your application. Note that calling this method overwrites any metadata that had been previously set on the specified member. #### Parameters | Name | Type | Description | | :---------------- | :-------------------------- | :------------------------------------------- | | `params` | `Object` | - | | `params.memberId` | `string` | Id of the member to affect. | | `params.meta` | `Record``` | The medatada object to assign to the member. | #### Returns `Promise` #### Example Setting metadata for a member: ```js await roomSession.setMemberMeta({ memberId: 'de550c0c-3fac-4efd-b06f-b5b8614b8966' // you can get this from getMembers() meta: { email: 'joe@example.com' } }) ```