# Mute all users on single click

**URL:** <https://openvidu.discourse.group/t/mute-all-users-on-single-click/1466>\
**Category:** How to implement?\
**Tags:** v2\
**Created:** [July 14, 2020, 8:38am UTC](https://openvidu.discourse.group/t/mute-all-users-on-single-click/1466 "2020-07-14T08:38:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![incodetech\_jaipur](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/incodetech_jaipur/32/538_2.png) [@incodetech\_jaipur](https://openvidu.discourse.group/u/incodetech_jaipur)\
**Post date:** [July 14, 2020, 8:38am UTC](https://openvidu.discourse.group/t/mute-all-users-on-single-click/1466/1 "2020-07-14T08:38:49Z")

</div>

I need to mute all other connected use on single click  
I am using openVidu javascript liberty

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [July 14, 2020, 8:47am UTC](https://openvidu.discourse.group/t/mute-all-users-on-single-click/1466/2 "2020-07-14T08:47:46Z")

</div>

Send a broadcast signal to all the participants you want to mute (you can do it [from any participant](https://docs.openvidu.io/en/2.15.0/cheatsheet/share-data/) of the session if a moderator must trigger the action, or from your backend using [REST API](https://docs.openvidu.io/en/2.15.0/reference-docs/REST-API/#post-apisignal)) and when receiving it, call `Publisher.publishAudio(false)`

---

<div class="post-metadata">

**Author:** ![Mahesh\_Hadiya](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/mahesh_hadiya/32/1319_2.png) [@Mahesh\_Hadiya](https://openvidu.discourse.group/u/Mahesh_Hadiya)\
**Post date:** [March 23, 2021, 11:21am UTC](https://openvidu.discourse.group/t/mute-all-users-on-single-click/1466/3 "2021-03-23T11:21:57Z")

</div>

@pabloFuente How can I mute particular user?

---

<div class="post-metadata">

**Author:** ![Juangui](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/juangui/32/1335_2.png) [@Juangui](https://openvidu.discourse.group/u/Juangui)\
**Post date:** [March 23, 2021, 2:53pm UTC](https://openvidu.discourse.group/t/mute-all-users-on-single-click/1466/4 "2021-03-23T14:53:27Z")

</div>

As Pablo said, use the signal to achieve this goal, but you can specify the connectionId. You can check the documentation about it.

In server-side API: to(optional array of strings): list of connection identifiers to which you want to send the signal. If this property is not included or is an empty array, the signal will be sent to all participants of the session  
In client-side: session.signal, parameter to

Regards
