Browse SDKs · WASM
SDKsWASM

Update a member’s group nickname

Update a specified member’s nickname within one group.

Copy

A group nickname belongs only to the member profile in the specified group. Updating it does not change the user's account nickname.

await openimsdk.setGroupMemberInfo({
  groupID,
  userID: targetUserID,
  nickname: 'Project lead',
});

Together, groupID and userID identify the target member. OpenIMServer determines whether the current user may update their own or another member's group nickname based on group roles and policy.

When the Promise resolves, the server has completed the request. OnGroupMemberInfoChanged may arrive afterward; merge the member by groupID:userID when it does. For the complete listener implementation, see List group members.