# Sometimes IMeetingParticipantsController::ChangeUserName returns

**URL:** <https://devforum.zoom.us/t/sometimes-imeetingparticipantscontroller-changeusername-returns/80519>\
**Category:** Meeting SDK\
**Created:** [December 20, 2022, 3:17am UTC](https://devforum.zoom.us/t/sometimes-imeetingparticipantscontroller-changeusername-returns/80519 "2022-12-20T03:17:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bogdan.lytvynovskyi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bogdan.lytvynovskyi/32/6781_2.png) [@bogdan.lytvynovskyi](https://devforum.zoom.us/u/bogdan.lytvynovskyi)\
**Post date:** [December 20, 2022, 3:17am UTC](https://devforum.zoom.us/t/sometimes-imeetingparticipantscontroller-changeusername-returns/80519/1 "2022-12-20T03:17:16Z")

</div>

**Meeting SDK Type and Version**  
Meeting SDK type: Windows SDK  
Meeting SDK version: 5.10.3.4873

**Description**  
Calling IMeetingParticipantsController::ChangeUserName for current user from within IMeetingParticipantsCtrlEvent::onUserJoin callback sometimes returns SDKERR\_WRONG\_USAGE.

One thing that I noticed when this happens is that calling IUserInfo::IsHost returns false for host of the meeting. This does not happen every time, but once in 10 meetings.

**Error?**  
SDKERR\_WRONG\_USAGE

**How To Reproduce**  
_Steps to reproduce the behavior including:_

1. Use custCreate account with ZAK for login
2. Join someones meeting with that account
3. Call ChangeUserName within onUserJoin callback for your custCreate account
4. Occasionally observe failure

---

<div class="post-metadata">

**Author:** ![bogdan.lytvynovskyi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bogdan.lytvynovskyi/32/6781_2.png) [@bogdan.lytvynovskyi](https://devforum.zoom.us/u/bogdan.lytvynovskyi)\
**Post date:** [January 10, 2023, 10:33pm UTC](https://devforum.zoom.us/t/sometimes-imeetingparticipantscontroller-changeusername-returns/80519/2 "2023-01-10T22:33:50Z")

</div>

@carson.zoom friendly ping on this ticket

---

<div class="post-metadata">

**Author:** ![bogdan.lytvynovskyi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bogdan.lytvynovskyi/32/6781_2.png) [@bogdan.lytvynovskyi](https://devforum.zoom.us/u/bogdan.lytvynovskyi)\
**Post date:** [January 10, 2023, 10:37pm UTC](https://devforum.zoom.us/t/sometimes-imeetingparticipantscontroller-changeusername-returns/80519/3 "2023-01-10T22:37:23Z")

</div>

> [@bogdan.lytvynovskyi](#):
>
> SDKERR\_WRONG\_USAGE

Acually now I have encountered another instance where error code is: SDKERR\_INTERNAL\_ERROR and SDKERR\_TOO\_FREQUENT\_CALL. Is there any good documentation around it

---

<div class="post-metadata">

**Author:** ![qing.peng](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/qing.peng/32/44350_2.png) [@qing.peng](https://devforum.zoom.us/u/qing.peng)\
**Post date:** [January 11, 2023, 7:42am UTC](https://devforum.zoom.us/t/sometimes-imeetingparticipantscontroller-changeusername-returns/80519/4 "2023-01-11T07:42:12Z")

</div>

Hi @bogdan.lytvynovskyi ,

Thanks for the post, I’m happy to help here! Only the host or co-host can change other users’ names, could you confirm if the SDKERR\_WRONG\_USAGE error code only occurs when the user is no longer a host?

You can find the documentation of error codes there:  
[https://marketplace.zoom.us/docs/sdk/video/windows/error-codes/](https://marketplace.zoom.us/docs/sdk/video/windows/error-codes/)

---

<div class="post-metadata">

**Author:** ![bogdan.lytvynovskyi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bogdan.lytvynovskyi/32/6781_2.png) [@bogdan.lytvynovskyi](https://devforum.zoom.us/u/bogdan.lytvynovskyi)\
**Post date:** [January 11, 2023, 2:00pm UTC](https://devforum.zoom.us/t/sometimes-imeetingparticipantscontroller-changeusername-returns/80519/5 "2023-01-11T14:00:38Z")

</div>

The user is never a host, but API works 99% of times. It only changes it’s own name, and sporadically fails
