ChangeUserName returns SDKError 2

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

Which Windows Meeting SDK version?
5.14.5.15340

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;
	::log(s.str());
}

Logs

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

https://marketplacefront.zoom.us/sdk/meeting/windows/class_i_meeting_participants_controller.html#a6331a70898b10eb22c8acd5f3e7b6995

Thanks @chunsiong.zoom !

1 Like

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