# Wrong check for host-role while renaming other user as co-host

**URL:** <https://devforum.zoom.us/t/wrong-check-for-host-role-while-renaming-other-user-as-co-host/39472>\
**Category:** Web\
**Created:** [December 31, 2020, 6:34am UTC](https://devforum.zoom.us/t/wrong-check-for-host-role-while-renaming-other-user-as-co-host/39472 "2020-12-31T06:34:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaosben](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chaosben/32/20799_2.png) [@chaosben](https://devforum.zoom.us/u/chaosben)\
**Post date:** [December 31, 2020, 6:34am UTC](https://devforum.zoom.us/t/wrong-check-for-host-role-while-renaming-other-user-as-co-host/39472/1 "2020-12-31T06:34:25Z")

</div>

**Description**  
Renaming another user as co-host throws error 3003

**Error**  
Code: 3003 Message: null

**Which version?**  
1.8.5

**To Reproduce**  
Steps to reproduce the behavior:

1. Get to be co-host
2. Rename a user which is not you (ZoomMtg.rename({userId: 1234, oldName: ‘oldName’, newName: ‘newName’}))
3. See error

**Device:**

- Device: Computer
- OS: Fedora 33
- Version: 5.9.15-200.fc33.x86\_64
- Browser: Chrome Version 87.0.4280.88 (64-Bit)

**Additional context**  
Imho the bug is located inside the function `zmg_isMeetingHost` which checks only for being Host but doesnt check for being co-host. [The same issue was posted some time ago](https://devforum.zoom.us/t/web-sdk-1-7-5-rename-other-user/13603).

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 31, 2020, 7:21pm UTC](https://devforum.zoom.us/t/wrong-check-for-host-role-while-renaming-other-user-as-co-host/39472/2 "2020-12-31T19:21:14Z")

</div>

Hey @chaosben,

Thanks for reporting this. We will take a look and fix the issue. 🙂 (CS-2748)

-Tommy

---

<div class="post-metadata">

**Author:** ![chaosben](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chaosben/32/20799_2.png) [@chaosben](https://devforum.zoom.us/u/chaosben)\
**Post date:** [January 3, 2021, 5:24am UTC](https://devforum.zoom.us/t/wrong-check-for-host-role-while-renaming-other-user-as-co-host/39472/3 "2021-01-03T05:24:17Z")

</div>

Thank you! 🙂

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 4, 2021, 8:13pm UTC](https://devforum.zoom.us/t/wrong-check-for-host-role-while-renaming-other-user-as-co-host/39472/4 "2021-01-04T20:13:58Z")

</div>

Happy to help @chaosben! 🙂

This will be fixed in version 1.8.6 coming later this month!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 11, 2021, 6:56pm UTC](https://devforum.zoom.us/t/wrong-check-for-host-role-while-renaming-other-user-as-co-host/39472/5 "2021-01-11T18:56:45Z")

</div>

Hey @chaosben ,

This should now be fixed. Please upgrade to version 1.8.6:

> [@Web SDK update version 1.8.6](https://devforum.zoom.us/t/web-sdk-update-version-1-8-6/40245):
>
> Hello Zoom Developers, here are the updates for the Web SDK version 1.8.6 release : Bug Fixes Fixed Attendee cannot join in to BreakOut Room when “Enable Waiting Room” is enabled. [Fixed Attendee Leaves meeting show 'trying to reconnect’.](https://devforum.zoom.us/t/sdk-1-8-5-zoom-component-try-to-reconnect-after-leaving-a-meeting-instead-of-closing/39062)[Fixed Joined audio user can’t show waiting room when be put on hold.](https://devforum.zoom.us/t/waiting-room-is-not-displayed-when-user-is-put-on-hold/31951)[Fixed Android Chrome Audio don’t work.](https://devforum.zoom.us/t/audio-not-working-in-mobile-1-8-5/39332) Fixed Audio stops working when High-Fidelity/Stereo Mode is Enabled. [Fixed Start Video Black Screen in Mac When Only One attendee.](https://devforum.zoom.us/t/error-start-video-for-first-participant/34917) Fixed “The host mute/…

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![chaosben](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chaosben/32/20799_2.png) [@chaosben](https://devforum.zoom.us/u/chaosben)\
**Post date:** [January 11, 2021, 7:11pm UTC](https://devforum.zoom.us/t/wrong-check-for-host-role-while-renaming-other-user-as-co-host/39472/6 "2021-01-11T19:11:37Z")

</div>

Well done!  
You got it fixed! 👍

Thank you!

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 11, 2021, 10:54pm UTC](https://devforum.zoom.us/t/wrong-check-for-host-role-while-renaming-other-user-as-co-host/39472/7 "2021-01-11T22:54:06Z")

</div>

You are welcome! 🙂

-Tommy

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [February 11, 2021, 8:54am UTC](https://devforum.zoom.us/t/wrong-check-for-host-role-while-renaming-other-user-as-co-host/39472/8 "2021-02-11T08:54:06Z")

</div>

Closed on February 11, 2021, 8:54am UTC

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