# Expel, mute, putOnHold in Web SDK

**URL:** <https://devforum.zoom.us/t/expel-mute-putonhold-in-web-sdk/13183>\
**Category:** Web\
**Created:** [April 14, 2020, 9:18pm UTC](https://devforum.zoom.us/t/expel-mute-putonhold-in-web-sdk/13183 "2020-04-14T21:18:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg.stanford](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/greg.stanford/32/5209_2.png) [@greg.stanford](https://devforum.zoom.us/u/greg.stanford)\
**Post date:** [April 14, 2020, 9:18pm UTC](https://devforum.zoom.us/t/expel-mute-putonhold-in-web-sdk/13183/1 "2020-04-14T21:18:45Z")

</div>

I am currently using 1.7.5 web SDK. I want to create a list of users who are currently in the meeting. I want to have to ability to kick a attendee out of the meeting, mute them or put them on hold. I see there are functionalities for it. I am confused as to which userId I should use while calling those functions in Web SDK.

I obtained ‘id’ by using [https://api.zoom.us/v2/users](https://api.zoom.us/v2/users) API for the attendees you have joined the meeting but that doesn’t work. Can someone guide me which userId I should be using and how to obtain that?

---

<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:** [April 15, 2020, 6:17am UTC](https://devforum.zoom.us/t/expel-mute-putonhold-in-web-sdk/13183/2 "2020-04-15T06:17:04Z")

</div>

Hey @greg.stanford,

You will need to use the participant IDs listed from the [getAttendeeslist](https://zoom.github.io/sample-app-web/ZoomMtg.html#getAttendeeslist) Web SDK function, or the [getCurrentUser](https://zoom.github.io/sample-app-web/ZoomMtg.html#getCurrentUser) function.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![greg.stanford](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/greg.stanford/32/5209_2.png) [@greg.stanford](https://devforum.zoom.us/u/greg.stanford)\
**Post date:** [April 29, 2020, 6:38pm UTC](https://devforum.zoom.us/t/expel-mute-putonhold-in-web-sdk/13183/3 "2020-04-29T18:38:41Z")

</div>

I was able to get the userId and perform all the above actions successfully. When I put the user on hold. Is there a way to determine the status of the user (whether he/she is put on hold)?

EDIT: After you remove a user from the meeting using expel user. Is there a way to refresh/update the meeting GUI?

Meeting GUI is frozen for the user which was expelled from the meeting.

---

<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:** [May 1, 2020, 10:32pm UTC](https://devforum.zoom.us/t/expel-mute-putonhold-in-web-sdk/13183/4 "2020-05-01T22:32:55Z")

</div>

Hey @greg.stanford,

Glad you are able to get the actions working! 🙂

> [@greg.stanford](#):
>
> Is there a way to determine the status of the user (whether he/she is put on hold)?

It should be returned from the [getCurrentUser](https://zoom.github.io/sample-app-web/ZoomMtg.html#getCurrentUser) and [getAttendeeslist](https://zoom.github.io/sample-app-web/ZoomMtg.html#getAttendeeslist) functions.

> [@greg.stanford](#):
>
> EDIT: After you remove a user from the meeting using expel user. Is there a way to refresh/update the meeting GUI?
> 
> Meeting GUI is frozen for the user which was expelled from the meeting.

We will look into this. I’d imagine they should be redirected to the leaveUrl.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![vishnu.singh](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@vishnu.singh](https://devforum.zoom.us/u/vishnu.singh)\
**Post date:** [May 8, 2020, 7:24am UTC](https://devforum.zoom.us/t/expel-mute-putonhold-in-web-sdk/13183/5 "2020-05-08T07:24:16Z")

</div>

Hey @greg.stanford,

I am also trying to implement the above functionalities as mentioned in question.

> [@tommy](#):
>
> You will need to use the participant IDs listed from the [getAttendeeslist](https://zoom.github.io/sample-app-web/ZoomMtg.html#getAttendeeslist) Web SDK function, or the [getCurrentUser](https://zoom.github.io/sample-app-web/ZoomMtg.html#getCurrentUser) function.

I tried the suggested solution but these functions are not working. They are returning “undefined”. I have called these functions after join success callback.

Please suggest how should I use them so that they work as expected.

Zoom SDK version is: 1.7.7  
Browser: Google Chrome, Version 81.0.4044.129 (Official Build) (64-bit)  
OS: macOS Mojave, Version 10.14.6

Thanks

---

<div class="post-metadata">

**Author:** ![vishnu.singh](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@vishnu.singh](https://devforum.zoom.us/u/vishnu.singh)\
**Post date:** [May 8, 2020, 8:20am UTC](https://devforum.zoom.us/t/expel-mute-putonhold-in-web-sdk/13183/6 "2020-05-08T08:20:21Z")

</div>

Okay, I figured out, anyway thanks!

---

<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:** [May 13, 2020, 9:18pm UTC](https://devforum.zoom.us/t/expel-mute-putonhold-in-web-sdk/13183/7 "2020-05-13T21:18:01Z")

</div>

Happy to hear you figured it out! 🙂

Let us know if you have additional questions.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 9:18pm UTC](https://devforum.zoom.us/t/expel-mute-putonhold-in-web-sdk/13183/8 "2020-08-21T21:18:12Z")

</div>

Closed on August 21, 2020, 9:18pm UTC


