ChangeUserName returns SDKError 2

ChangeUserName (from IMeetingParticipantsController ) returns SDKError 2, when trying to change my own name (the SDKDemo user).

Which Windows Meeting SDK version?

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Have the SDK demo join any meeting.
  2. Inside any callback, e.g. onUserJoin, run these lines of code:
void CMeetingServiceMgr::onUserJoin(IList<unsigned int >* lstUserID, const wchar_t* strUserList)
	// virtual SDKError ChangeUserName(const unsigned int userid, const wchar_t* userName, bool bSaveUserName) = 0;
	auto res = m_pUserCtrl->ChangeUserName(ZoomSDKUserId, L"NewName", false);
	std::stringstream s;
	s << "res: " << res;


2023-09-21 15:08:45.100 3612909816Chorus911183868F47829455DAED58668858A7184 res: 2

Device (please complete the following information):

  • Device: HP Zenbook laptop
  • OS: Windows 10

@oren.nahum1 ,

This method can only be called be used by host or co-host

Thanks @chunsiong.zoom !

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.