# Possible \`getBreakoutRoomList\` API regression - missing participants

**URL:** <https://devforum.zoom.us/t/possible-getbreakoutroomlist-api-regression-missing-participants/84314>\
**Category:** Zoom Apps\
**Created:** [March 7, 2023, 3:49pm UTC](https://devforum.zoom.us/t/possible-getbreakoutroomlist-api-regression-missing-participants/84314 "2023-03-07T15:49:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![om7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/om7/32/36428_2.png) [@om7](https://devforum.zoom.us/u/om7)\
**Post date:** [March 7, 2023, 3:49pm UTC](https://devforum.zoom.us/t/possible-getbreakoutroomlist-api-regression-missing-participants/84314/1 "2023-03-07T15:49:32Z")

</div>

Last week we noticed an issue with our app when transferring Host privileges.

When digging deeper into our app’s logs I noticed a difference in the response from `getBreakoutRoomList()` when the user is the original Host (i.e. it is their meeting, they are the Meeting Owner) and the “new” transferred Host (not Meeting Onwer)

I believe this may be a regression for two reasons:

1. We expect the `getBreakoutRoomList()` API to return all of the participants in each room for the Host at all times (not just Meeting Owner) and it did so when you shipped the Host/Co-host APIs feature and;
2. Your original API spec _omitted the participants for each room_ in the case where the Host was not also the Meeting Owner

I have some screenshots illustrating the problem;

**Host and Meeting Owner**  
correctly receives a list of participants (the `participants` array) for each room

 ![Screenshot 2023-03-07 at 17.30.23](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/4/24da260930e76c4ce59eaaff8c60328dde8b07d1.jpeg)

**newly transferred Host (not Meeting Owner)**  
incorrectly receives an empty list of participants (the `participants` array) for each room

 ![Screenshot 2023-03-07 at 17.27.02](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/7/d795af689610d3c1ab9b39ffbf52910367a49dd9.jpeg)

* * *

**Technical Specification**

Zoom Client Version: v5.13.11  
Zoom Apps SDK Version: v0.16.8

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 8, 2023, 6:51pm UTC](https://devforum.zoom.us/t/possible-getbreakoutroomlist-api-regression-missing-participants/84314/2 "2023-03-08T18:51:39Z")

</div>

Thanks for reporting this, I’ve created a bug for this behavior (ZOOM-503003)

I’ll keep you posted as the issue progresses

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 10, 2023, 7:14pm UTC](https://devforum.zoom.us/t/possible-getbreakoutroomlist-api-regression-missing-participants/84314/3 "2023-03-10T19:14:52Z")

</div>

Thanks for your patience here. Our team got back to me and indicated that you should be able to use the `getBreakoutRoomList()` function as expected in the callback for the `onMyUserContextChange` event.

Have you tested that method? Let me know if you’re seeing the expected behavior when waiting for the context change event.

---

<div class="post-metadata">

**Author:** ![om7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/om7/32/36428_2.png) [@om7](https://devforum.zoom.us/u/om7)\
**Post date:** [March 13, 2023, 11:09am UTC](https://devforum.zoom.us/t/possible-getbreakoutroomlist-api-regression-missing-participants/84314/4 "2023-03-13T11:09:59Z")

</div>

Hey Max, thanks for following this up and for communicating with the team.

The issue here is **not** that we _can’t use_ the `getBreakoutRoomList()` method; we have no issue using it after the host privileges are transferred and we call `config()` again in the callback for the `onMyUserContextChange` event, as you (and the SDK docs) suggest.

Instead, the problem we’re having is:

When calling the `getBreakoutRoomList()` method, the response is incorrect for the new host (after correctly handling the `onMyUserContextChange` event). I hope that’s clearer. Can you share that with the team?

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 13, 2023, 4:30pm UTC](https://devforum.zoom.us/t/possible-getbreakoutroomlist-api-regression-missing-participants/84314/5 "2023-03-13T16:30:29Z")

</div>

Got it, thanks for clarifying that point. I’ll let our team know that you’re seeing incorrect results even after using `onMyUserContextChange`.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 16, 2023, 7:01pm UTC](https://devforum.zoom.us/t/possible-getbreakoutroomlist-api-regression-missing-participants/84314/6 "2023-03-16T19:01:56Z")

</div>

Would you be able to send a video demonstrating this issue? I attempted to reproduce this issue on my end but I didn’t encounter the same problem.

Here is a loom of me using the getBreakoutRoomList function after transferring the host. Please let me know if I’m following the proper steps to replicate the issue.

Here is a snippet of the code that I used with our [Basic Sample App](https://github.com/zoom/zoomapps-sample-js):

```auto
zoomSdk.onMyUserContextChange(async (event) => {
    if (event.role === "host") {
        const list = await zoomSdk.getBreakoutRoomList()
        console.log("From User context change",list)
    }
})

const onClick = async () => {
    const list = await zoomSdk.getBreakoutRoomList()
    console.log(list)
}

const btn = document.getElementById('getList');
btn.onclick = onClick;

```
