# Is getAttendeeslist() not supported for webinars?

**URL:** <https://devforum.zoom.us/t/is-getattendeeslist-not-supported-for-webinars/39390>\
**Category:** Web\
**Created:** [December 29, 2020, 10:01pm UTC](https://devforum.zoom.us/t/is-getattendeeslist-not-supported-for-webinars/39390 "2020-12-29T22:01:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbyers](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jbyers](https://devforum.zoom.us/u/jbyers)\
**Post date:** [December 29, 2020, 10:01pm UTC](https://devforum.zoom.us/t/is-getattendeeslist-not-supported-for-webinars/39390/1 "2020-12-29T22:01:15Z")

</div>

**Description**  
I am wondering if all the web SDK functions on the reference page work for webinars.  
Specifically, `ZoomMtg.getAttendeeslist()`

**Error**  
Calling `ZoomMtg.getAttendeeslist({})` returns `undefined`.  
I found another forum saying to try it like this:

```auto
ZoomMtg.getAttendeeslist({
        success: function (res) {
                    console.log(res, "get getAttendeeslist");
           }
});

```

This returns a result of `This api dont support webinar`.  
I am wondering if I am doing something wrong, or if that function won’t work with a webinar meeting.

My end goal is to try muting users through the web SDK, but before I can do that, it seems I need their IDs, which can be retrieved by calling `ZoomMtg.getAttendeeslist` first. I’m wondering what other options I have, or if I am just using the SDK incorrectly.

**Which version?**  
Client SDK 1.8.5

These are the scripts I’m using:

```auto
<script src="https://source.zoom.us/1.8.5/lib/vendor/react.min.js"></script>
    <script src="https://source.zoom.us/1.8.5/lib/vendor/react-dom.min.js"></script>
    <script src="https://source.zoom.us/1.8.5/lib/vendor/redux.min.js"></script>
    <script src="https://source.zoom.us/1.8.5/lib/vendor/redux-thunk.min.js"></script>
    <script src="https://source.zoom.us/1.8.5/lib/vendor/lodash.min.js"></script>

    <!-- import ZoomMtg -->
    <script src="https://source.zoom.us/zoom-meeting-1.8.5.min.js"></script>

```

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Start a Zoom webinar. (I’ve been starting it through the regular Zoom desktop client)
2. Open up a browser window with the client sdk.
3. Join the webinar (passing the correct signature and MeetingID)
4. Open up the JavaScript console and call:

```auto
ZoomMtg.getAttendeeslist({
        success: function (res) {
                    console.log(res, "get getAttendeeslist");
           }
});

```

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

- Device: PC
- OS: Windows 10
- Browser: Firefox 84.0.1

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [December 29, 2020, 11:37pm UTC](https://devforum.zoom.us/t/is-getattendeeslist-not-supported-for-webinars/39390/2 "2020-12-29T23:37:32Z")

</div>

Hey @jbyers,

Thank you for reaching out to the Zoom Developer Forum. It is expected that the `ZoomMtg` functions won’t work on the JavaScript console. This is because the packages you import into your application aren’t necessarily going to be available in the console. I tested calling the `ZoomMtg.getAttendeeslist()` function from the callback of the `ZoomMtg.join()` and it worked as expected.

Let me know if that works for you!

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![jbyers](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jbyers](https://devforum.zoom.us/u/jbyers)\
**Post date:** [December 30, 2020, 12:02am UTC](https://devforum.zoom.us/t/is-getattendeeslist-not-supported-for-webinars/39390/3 "2020-12-30T00:02:02Z")

</div>

How are you calling `ZoomMtg.getAttendeeslist()` and `ZoomMtg.join()`?  
I can have the page do it on load (instead of using the developer console), but I continue to get `This api dont support webinar`.

Here’s my JavaScript:

```auto
ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();

window.onload = function(){
	console.log("Hello from window onload");

	joinMeeting("MY_SIGNATURE_GOES_HERE",
		84438084965);
};

function joinMeeting(signature, meetingNumber){
	ZoomMtg.init({
		leaveUrl: "https://le.utah.gov",
		// on success, call the join method
		success: function(){
			ZoomMtg.join({
				signature: signature,
				apiKey: "myApiKey",
				meetingNumber: meetingNumber,
				userEmail: "somebody@somewhere.com",
				userName: "John B",
				// on success, log it
				success: function (res) {
					console.log("Join meeting success");

					someOtherFunction();
				}
			})
		}
	})
}

function someOtherFunction(){
	console.log("In someOtherFunction()");
	var x = ZoomMtg.getAttendeeslist({
		success: function (res) {
                    console.log(res, "get getAttendeeslist");
           }
	});
	console.debug(x);
}

```

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [December 30, 2020, 6:20pm UTC](https://devforum.zoom.us/t/is-getattendeeslist-not-supported-for-webinars/39390/4 "2020-12-30T18:20:29Z")

</div>

Hey @jbyers,

Thank you for the update. I tested this again and realized that my test was using a meeting ID hardcoded from an earlier test so it wasn’t joining the webinar. When testing this with a webinar, I was able to confirm that this feature is not available for webinars as I got the same error as you. If you would like this feature to be considered for a future release, I recommend posting in the #feature-requests category.

In the meantime, you can use the [Get Webinar Participants API](https://marketplace.zoom.us/docs/api-reference/zoom-api/dashboards/dashboardwebinarparticipants) in order to obtain similar information for an ongoing webinar.

Sorry for the confusion there, I hope that helps.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![jbyers](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jbyers](https://devforum.zoom.us/u/jbyers)\
**Post date:** [December 30, 2020, 7:57pm UTC](https://devforum.zoom.us/t/is-getattendeeslist-not-supported-for-webinars/39390/5 "2020-12-30T19:57:00Z")

</div>

Thanks MaxM. I will try the Get Webinar Participants API route.  
Do you know if `mute()` is supported for webinars in the Web Client SDK?

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [December 30, 2020, 8:15pm UTC](https://devforum.zoom.us/t/is-getattendeeslist-not-supported-for-webinars/39390/6 "2020-12-30T20:15:36Z")

</div>

Hey @jbyers,

When using a Webinar, attendees don’t have the ability to share video or audio. This means all attendees should be muted by default and there is actually no way to unmute them. If you are expecting participants to be able to speak at some points, you may want to look into using a meeting instead and using the `muteAll()` and `mute()` functions as necessary.

Let me know if you have any questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![jbyers](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jbyers](https://devforum.zoom.us/u/jbyers)\
**Post date:** [December 30, 2020, 8:38pm UTC](https://devforum.zoom.us/t/is-getattendeeslist-not-supported-for-webinars/39390/7 "2020-12-30T20:38:59Z")

</div>

Maybe I’m misunderstanding. I want to mute/unmute panelists. We won’t be dealing with regular attendees since they already can’t speak.  
I thought that `getAttendeeslist()` would get me everyone in the webinar, including panelists. Is that not right? Is there a way to get panelists for muting through the sdk?

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [December 30, 2020, 11:39pm UTC](https://devforum.zoom.us/t/is-getattendeeslist-not-supported-for-webinars/39390/8 "2020-12-30T23:39:54Z")

</div>

Hey @jbyers,

Thank you for clarifying, that was my mistake for misunderstanding. I tested this on my device and was able to see that you cannot mute/unmute a panelist using the Web SDK. As panelists can only join from the Zoom Mobile App or Desktop Client, this shouldn’t pose too much of an issue as the Webinar host can mute and unmute panelists as needed. This does mean that it can’t be done programmatically, even with the API. If you would like this feature to be considered for a future release, I recommend posting in the #feature-requests category.

I was also able to confirm that the [Get Webinar Participants API](https://marketplace.zoom.us/docs/api-reference/zoom-api/dashboards/dashboardwebinarparticipants) will return information for panelists.

Let me know if that helps.

Thanks,  
Max

---

<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:** [January 30, 2021, 9:40am UTC](https://devforum.zoom.us/t/is-getattendeeslist-not-supported-for-webinars/39390/9 "2021-01-30T09:40:26Z")

</div>

Closed on January 30, 2021, 9:40am UTC

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