# Host status is incorrect

**URL:** <https://devforum.zoom.us/t/host-status-is-incorrect/56099>\
**Category:** Meeting SDK\
**Created:** [August 19, 2021, 6:09pm UTC](https://devforum.zoom.us/t/host-status-is-incorrect/56099 "2021-08-19T18:09:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremy.provost](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jeremy.provost/32/12182_2.png) [@jeremy.provost](https://devforum.zoom.us/u/jeremy.provost)\
**Post date:** [August 19, 2021, 6:09pm UTC](https://devforum.zoom.us/t/host-status-is-incorrect/56099/1 "2021-08-19T18:09:28Z")

</div>

**Description**  
The host and cohost status of a user are being incorrectly reported. Host is being reported as cohost and cohosts are being reported as host.

**Which Mobile Meeting SDK version?**  
5.7.1.644

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

1. Join a meeting with multiple devices.
2. Set up a scenario where you have User1 as host, User2 as cohost, and User3 without any special priveleges.
3. Run this code:

```auto
if let service = MobileRTC.shared().getMeetingService(), let list = service.getInMeetingUserList() {
  for id in list {
    if let id = id as? UInt, let user = service.userInfo(byID: id) {
      print("found \(user.userName), host? \(user.isHost), cohost? \(user.isCohost)")
    }
  }
}

```

1. You will see that host and cohost are flipped. The above code would output the following:  
found User1, host? false, cohost? true  
found User2, host? true, cohost? false  
found User3, host? false, cohost? false

**Smartphone (please complete the following information):**

- OS: iOS 14

**Additional context**  
This was working in the previous version of the SDK.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [August 19, 2021, 8:22pm UTC](https://devforum.zoom.us/t/host-status-is-incorrect/56099/2 "2021-08-19T20:22:41Z")

</div>

Hey @jeremy.provost,

Thanks for using the dev forum!

I am seeing the same as well, thank you for the clear reproduction steps. Will submit a bug report for this.

Thanks!  
Michael

---

<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:** [September 19, 2021, 6:23am UTC](https://devforum.zoom.us/t/host-status-is-incorrect/56099/3 "2021-09-19T06:23:08Z")

</div>

Closed on September 19, 2021, 6:23am UTC

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