*** id: ae7188d1-c221-4195-9f6a-9a5326f88b9e title: setMemberMeta slug: /js/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 Object containing the parameters of the method. Id of the member to affect. If omitted, affects the default device in the local client. The medatada object to assign to the member. #### Returns `Promise` #### Permissions * `room.self.set_meta`: to set the metadata for the local member. * `room.member.set_meta`: to set the metadata for a remote member. You need to specify the permissions when [creating the Video Room Token](/docs/apis/video/room-tokens/create-room-token) on the server side. #### Examples Setting metadata for the current member: ```js await roomSession.setMemberMeta({ meta: { email: "joe@example.com", }, }); ``` Setting metadata for another member: ```js await roomSession.setMemberMeta({ memberId: 'de550c0c-3fac-4efd-b06f-b5b8614b8966' // you can get this from getMembers() meta: { email: 'joe@example.com' } }) ```