# toggleParticipantMediaAudio requires use confirm every time it is used

**URL:** <https://devforum.zoom.us/t/toggleparticipantmediaaudio-requires-use-confirm-every-time-it-is-used/90165>\
**Category:** Zoom Apps\
**Created:** [June 14, 2023, 3:39pm UTC](https://devforum.zoom.us/t/toggleparticipantmediaaudio-requires-use-confirm-every-time-it-is-used/90165 "2023-06-14T15:39:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathan.crockett](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jonathan.crockett/32/37712_2.png) [@jonathan.crockett](https://devforum.zoom.us/u/jonathan.crockett)\
**Post date:** [June 14, 2023, 3:39pm UTC](https://devforum.zoom.us/t/toggleparticipantmediaaudio-requires-use-confirm-every-time-it-is-used/90165/1 "2023-06-14T15:39:34Z")

</div>

When calling the `toggleParticipantMediaAudio()` function, the user has to confirm both muting or unmuting that participant via a popup every time that method is called.

This adds a lot of friction, especially if muting some participants and unmuting others in the same user action.

Is this the expected behavior?

If so would it be possible to change the behavior such that the first time the button is clicked for that user they are asked to give permission for that app to use `toggleParticipantMediaAudio()` in general?

 ![Screen Shot 2023-06-14 at 11.31.54 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/0/e090e1a78a08a6daee7f52f59b56bd19c4e4841a.png)

 ![Screen Shot 2023-06-14 at 11.31.26 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/8/782059497042433d2890d0dea67a017022d83681.png)

---

<div class="post-metadata">

**Author:** ![JonStewart](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jonstewart/32/36192_2.png) [@JonStewart](https://devforum.zoom.us/u/JonStewart)\
**Post date:** [June 21, 2023, 8:07pm UTC](https://devforum.zoom.us/t/toggleparticipantmediaaudio-requires-use-confirm-every-time-it-is-used/90165/2 "2023-06-21T20:07:26Z")

</div>

Hi @jonathan.crockett , and thanks for the thoughts. This is expected behavior for now. You raise a good point, and the idea here is to prioritize user consent, even if it adds a little friction. This is consistent with Zoom’s commitment to security and privacy of users.
