# ChangeUserName function is returning SDKERR\_INTELNAL\_ERROR error

**URL:** <https://devforum.zoom.us/t/changeusername-function-is-returning-sdkerr-intelnal-error-error/25218>\
**Category:** Windows\
**Created:** [July 26, 2020, 9:07am UTC](https://devforum.zoom.us/t/changeusername-function-is-returning-sdkerr-intelnal-error-error/25218 "2020-07-26T09:07:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vaghaninirav10](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vaghaninirav10/32/12298_2.png) [@vaghaninirav10](https://devforum.zoom.us/u/vaghaninirav10)\
**Post date:** [July 26, 2020, 9:07am UTC](https://devforum.zoom.us/t/changeusername-function-is-returning-sdkerr-intelnal-error-error/25218/1 "2020-07-26T09:07:15Z")

</div>

**Description**  
Hi  
I am using latest ZOOM sdk version of v5.0.24433.0616 in Visual studio 2017 C++. I want to change user name after In meeting status. I am currently using ChangeUserName function of IMeetingParticipantsController. But it is returning SDKERR\_INTELNAL\_ERROR.  
What am i doing wrong? Can you please help me?

**Which version?**  
v5.0.24433.0616

**Code which i am using for it**  
ZOOMSDK::IMeetingService\* pMeetingService = SDKInterfaceWrap::GetInst().GetMeetingService();  
ZOOMSDK::IMeetingParticipantsController\* pController = pMeetingService-\>GetMeetingParticipantsController();  
if (pController)  
{  
ZOOM\_SDK\_NAMESPACE::IUserInfo\* puserInfo = getCurrentUserInfo();  
if (puserInfo)  
{  
ZOOMSDK::SDKError error = pController-\>ChangeUserName(puserInfo-\>GetUserID(), displayTitle.c\_str(), false);  
if (error == ZOOM\_SDK\_NAMESPACE::SDKERR\_SUCCESS)  
sendMeetingInfoCommand();  
}  
}

getCurrentUserInfo function is returning my userinfo.

**Log file link**  
[https://drive.google.com/file/d/1Js5ATRHJcO3q2Wj1KYwvG51haHk4vJJP/view?usp=sharing](https://drive.google.com/file/d/1Js5ATRHJcO3q2Wj1KYwvG51haHk4vJJP/view?usp=sharing)

Waiting for your reply.  
Thanks

---

<div class="post-metadata">

**Author:** ![tmiskiew](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tmiskiew/32/9174_2.png) [@tmiskiew](https://devforum.zoom.us/u/tmiskiew)\
**Post date:** [July 29, 2020, 6:54am UTC](https://devforum.zoom.us/t/changeusername-function-is-returning-sdkerr-intelnal-error-error/25218/2 "2020-07-29T06:54:57Z")

</div>

@carson.zoom - any joy?

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [August 4, 2020, 12:41am UTC](https://devforum.zoom.us/t/changeusername-function-is-returning-sdkerr-intelnal-error-error/25218/3 "2020-08-04T00:41:31Z")

</div>

Hi @vaghaninirav10,

Thanks for the post and pardon the late response. Based on the log provided, the request to change the user name was failed but it did not show the root cause. Based on the code snippet, we are able to use the code snippet provided and successfully change user name with our demo app(So we are not able to reproduce this issue with our demo app). Is this happening every time you run this code?

Thanks!

---

<div class="post-metadata">

**Author:** ![vaghaninirav10](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vaghaninirav10/32/12298_2.png) [@vaghaninirav10](https://devforum.zoom.us/u/vaghaninirav10)\
**Post date:** [August 4, 2020, 2:04am UTC](https://devforum.zoom.us/t/changeusername-function-is-returning-sdkerr-intelnal-error-error/25218/4 "2020-08-04T02:04:37Z")

</div>

Hi thanks for replying.  
Yes it is happening every time when i run this code.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [August 7, 2020, 7:27am UTC](https://devforum.zoom.us/t/changeusername-function-is-returning-sdkerr-intelnal-error-error/25218/5 "2020-08-07T07:27:04Z")

</div>

Hi @vaghaninirav10,

Thanks for confirming. Based on the log, it looks like the interface changeUserName function is not called in the main thread. The SDK interfaces need to be called in the main thread. Please have a try.

Thanks!

---

<div class="post-metadata">

**Author:** ![vaghaninirav10](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vaghaninirav10/32/12298_2.png) [@vaghaninirav10](https://devforum.zoom.us/u/vaghaninirav10)\
**Post date:** [August 8, 2020, 7:39am UTC](https://devforum.zoom.us/t/changeusername-function-is-returning-sdkerr-intelnal-error-error/25218/6 "2020-08-08T07:39:07Z")

</div>

Thank you so much.  
Its working.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [August 15, 2020, 12:59am UTC](https://devforum.zoom.us/t/changeusername-function-is-returning-sdkerr-intelnal-error-error/25218/7 "2020-08-15T00:59:59Z")

</div>

Glad to hear that! Then I will go ahead and close this thread. Please feel free to create another post if any other questions. 🙂

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [August 15, 2020, 1:00am UTC](https://devforum.zoom.us/t/changeusername-function-is-returning-sdkerr-intelnal-error-error/25218/8 "2020-08-15T01:00:01Z")

</div>

Closed on August 15, 2020, 1:00am UTC


