# Join Meeting as co-host

**URL:** <https://devforum.zoom.us/t/join-meeting-as-co-host/50868>\
**Category:** Windows\
**Created:** [May 24, 2021, 9:35am UTC](https://devforum.zoom.us/t/join-meeting-as-co-host/50868 "2021-05-24T09:35:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anhnt](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anhnt/32/3194_2.png) [@anhnt](https://devforum.zoom.us/u/anhnt)\
**Post date:** [May 24, 2021, 9:35am UTC](https://devforum.zoom.us/t/join-meeting-as-co-host/50868/1 "2021-05-24T09:35:46Z")

</div>

Hi Dev forum.

We are using Windows SDK wrapper. We want to assign co-host when user join meeting via SDK.

According to manual on other post:

“virtual SDKError AssignCoHost(unsigned int userid) = 0;  
The IMeetingParticipantController class([ZOOM Windows SDK: IMeetingParticipantsController Class Reference](https://zoom.github.io/zoom-sdk-windows/class_i_meeting_participants_controller.html) 13) has all interfaces that you would need to CRUD a participant with his/her user role.”

We did try:  
Array users = ZOOM\_SDK\_DOTNET\_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingParticipantsController().GetParticipantsList();  
foreach (var item in users)  
{  
ZOOM\_SDK\_DOTNET\_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingParticipantsController().AssignCoHost((uint)item);  
var check = ZOOM\_SDK\_DOTNET\_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingParticipantsController().CanBeCoHost((uint)item);  
Console.WriteLine(check);  
}

But there is error message: SDKERR\_WRONG\_USEAGE"

Is there any method to Join Meeting as co-host via SDK ? Please advise.

Thanks.

---

<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:** [May 24, 2021, 7:25pm UTC](https://devforum.zoom.us/t/join-meeting-as-co-host/50868/2 "2021-05-24T19:25:54Z")

</div>

Hey @anhnt,

Thanks for using the dev forum!

Which one of the calls is producing a WRONG\_USAGE error?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![minhbn](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/minhbn/32/27483_2.png) [@minhbn](https://devforum.zoom.us/u/minhbn)\
**Post date:** [May 25, 2021, 3:14am UTC](https://devforum.zoom.us/t/join-meeting-as-co-host/50868/3 "2021-05-25T03:14:54Z")

</div>

Hi @Michael_Condon ,  
both of these functions have that error:  
ZOOM\_SDK\_DOTNET\_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingParticipantsController().AssignCoHost((uint)item);  
and  
ZOOM\_SDK\_DOTNET\_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingParticipantsController().CanBeCoHost((uint)item);

---

<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:** [May 25, 2021, 7:12pm UTC](https://devforum.zoom.us/t/join-meeting-as-co-host/50868/4 "2021-05-25T19:12:47Z")

</div>

Hey @minhbn,

Is the user calling these functions the host or a participant?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![minhbn](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/minhbn/32/27483_2.png) [@minhbn](https://devforum.zoom.us/u/minhbn)\
**Post date:** [May 26, 2021, 10:12am UTC](https://devforum.zoom.us/t/join-meeting-as-co-host/50868/5 "2021-05-26T10:12:16Z")

</div>

Hi @Michael_Condon ,  
The user calling these functions is participant. Because I join to the meeting without login by Zoom app which by zoom c# wrap. I want to auto set the participant is cohost when the participant joined a meeting.

---

<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:** [May 26, 2021, 7:57pm UTC](https://devforum.zoom.us/t/join-meeting-as-co-host/50868/6 "2021-05-26T19:57:17Z")

</div>

Hey @minhbn,

Only a host can call these functions.

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:** [June 26, 2021, 5:57am UTC](https://devforum.zoom.us/t/join-meeting-as-co-host/50868/7 "2021-06-26T05:57:43Z")

</div>

Closed on June 26, 2021, 5:57am UTC

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