# Assign users to breakout rooms based on user data

**URL:** <https://devforum.zoom.us/t/assign-users-to-breakout-rooms-based-on-user-data/63829>\
**Category:** Windows\
**Created:** [February 5, 2022, 1:01am UTC](https://devforum.zoom.us/t/assign-users-to-breakout-rooms-based-on-user-data/63829 "2022-02-05T01:01:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoomsdkdevop](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoomsdkdevop/32/34590_2.png) [@zoomsdkdevop](https://devforum.zoom.us/u/zoomsdkdevop)\
**Post date:** [February 5, 2022, 1:01am UTC](https://devforum.zoom.us/t/assign-users-to-breakout-rooms-based-on-user-data/63829/1 "2022-02-05T01:01:24Z")

</div>

**Description**  
I need to organize users into breakout rooms based on a specific user property. To assign users to a breakout room I do the following:

```auto
ZOOMSDK::IList<const wchar_t*>* unassignedUserList = pBODataHelper->GetUnassginedUserList();
// Some checks
for (int i = 0; i < unassignedUserList->GetCount(); i++)
{
	const wchar_t* strUserID = unassignedUserList->GetItem(i);

    //Here I want to assign only users with a specific property
	if (pBOCreatorHelper->AssignUserToBO(strUserID, ROOM_ID))
	{
        // ...
	}
}

```

To get a `IUserInfo*` for a specific user I call `GetUserById(unsigned int)` defined in the `IMeetingParticipantsController` interface.  
However `GetUnassginedUserList()` returns an IList NOT of `unsigned ints` BUT of `const_wchar_t*`. Is there a function that accepts a `const wchar_t*` and returns a IUserInfo?

**Which Windows Meeting SDK version?**  
Version 5.7.6.1081

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

- OS: Windows 10

---

<div class="post-metadata">

**Author:** ![zoomsdkdevop](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoomsdkdevop/32/34590_2.png) [@zoomsdkdevop](https://devforum.zoom.us/u/zoomsdkdevop)\
**Post date:** [February 7, 2022, 9:31pm UTC](https://devforum.zoom.us/t/assign-users-to-breakout-rooms-based-on-user-data/63829/2 "2022-02-07T21:31:29Z")

</div>

Is there help on the way? Because I’m drowning and help is needed 🙂

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 9, 2022, 12:03am UTC](https://devforum.zoom.us/t/assign-users-to-breakout-rooms-based-on-user-data/63829/3 "2022-02-09T00:03:57Z")

</div>

Hi @zoomsdkdevop, thanks for using our SDK.

Unfortunately it is not possible to get the IDs of each user through the breakout-related functions. The only identifier currently exposed through the SDK is the username, which can be obtained through [`GetBOUserName`](https://marketplacefront.zoom.us/sdk/meeting/windows/class_i_b_o_data.html#aa618ca1837dafc3f42c8596f2269afea).

Thanks!

---

<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:** [March 11, 2022, 10:04am UTC](https://devforum.zoom.us/t/assign-users-to-breakout-rooms-based-on-user-data/63829/4 "2022-03-11T10:04:48Z")

</div>

Closed on March 11, 2022, 10:04am UTC

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