# Access Token not working for get attendee list from webinar

**URL:** <https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607>\
**Category:** API and Webhooks\
**Created:** [April 2, 2020, 9:12am UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607 "2020-04-02T09:12:36Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkrugger](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jkrugger](https://devforum.zoom.us/u/jkrugger)\
**Post date:** [April 2, 2020, 9:12am UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607/1 "2020-04-02T09:12:36Z")

</div>

Access token is not working for get attendee list from past webinar.

it is working for create a new webinar.

**Error**  
{“code”:124,“message”:“Invalid access token.”}

\*\*Which App Type : OAuth

I am trying to call this api  
[https://marketplace.zoom.us/docs/api-reference/zoom-api/dashboards/dashboardwebinarparticipants](https://marketplace.zoom.us/docs/api-reference/zoom-api/dashboards/dashboardwebinarparticipants)

I am not able to set this scopes: dashboard:read:admin

Please let me know , how to set this above scope if problem  
in scope.

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:** [April 2, 2020, 8:02pm UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607/2 "2020-04-02T20:02:18Z")

</div>

Hey @jkrugger,

You need to have a Business or higher plan to set the dashboard scopes.

From the [docs](https://marketplace.zoom.us/docs/api-reference/zoom-api/dashboards/dashboardwebinarparticipants):

“Business, Education or API Plan with Webinar add-on.”

If you only have the pro plan, and don’t want to upgrade, you can use the [Get Webinar Participants Reports endpoint.](https://marketplace.zoom.us/docs/api-reference/zoom-api/reports/reportwebinarparticipants)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jkrugger](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jkrugger](https://devforum.zoom.us/u/jkrugger)\
**Post date:** [April 2, 2020, 8:36pm UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607/3 "2020-04-02T20:36:00Z")

</div>

Using the API, we are able to create a webinar and add a registrant using the token but we are having a problem using the same token to update a webinar or delete a webinar.

We were using the code below to try to update the webinar but are receiving a message: “code”:124,“message”:“Invalid access token.”

Please see the code below. We are close to wrapping this up and hopefully, you can help us figure these few things out.

```
        $postdata = '{"topic":"this is new course title","type":5,"start_time":"2020-06-23T15:00:00Z","duration":60,"timezone":"America\/New_York","agenda":"this is new course title","recurrence":{"type":1,"repeat_interval":1,"end_date_time":"2020-06-23T16:00:00Z"},"settings":{"host_video":"true","panelists_video":"true","practice_session":"true","hd_video":"true","approval_type":0,"registration_type":1,"audio":"both","auto_recording":"none","enforce_login":"false","enforce_login_domains":"","alternative_hosts":"","close_registration":"true","show_share_button":"true","allow_multiple_devices":"false","registrants_email_notification":"false"}}';

$header = array(
	'Content-Type: application/json',
	"Authorization: Bearer eyJhbGciOiJIUzUxMiIsInYiOiIyLjAiLCJraWQiOiI2OWM5OTk5MC1mODY2LTQ0ZmYtYWRlOS03MGJkNWYzYzZkNzkifQ.eyJ2ZXIiOiI2IiwiY2xpZW50SWQiOiJfcDBYQWhWblRpMmc0b04yYWlIR3lRIiwiY29kZSI6ImhLUDhOYVdiNEdfbVlyRld1d0RUeXVoWVpLakQ0RlI1QSIsImlzcyI6InVybjp6b29tOmNvbm5lY3Q6Y2xpZW50aWQ6X3AwWEFoVm5UaTJnNG9OMmFpSEd5USIsImF1dGhlbnRpY2F0aW9uSWQiOiIxNjhkYTg0Y2MwYjhhNTc3NzFiOTAxNDFhZjEyZTk3ZiIsInVzZXJJZCI6Im1ZckZXdXdEVHl1aFlaS2pENEZSNUEiLCJncm91cE51bWJlciI6MCwiYXVkIjoiaHR0cHM6Ly9vYXV0aC56b29tLnVzIiwiYWNjb3VudElkIjoick1vMEh2S3JRQkNza3lQSGNOQlEyZyIsIm5iZiI6MTU4NTg0NjIxOCwiZXhwIjoxNTg1ODQ5ODE4LCJ0b2tlblR5cGUiOiJhY2Nlc3NfdG9rZW4iLCJpYXQiOjE1ODU4NDYyMTgsImp0aSI6IjE1OGVlMjlmLTE3MjItNDAyYi1hODdiLTAzMzQxNDkzODNkMyIsInRvbGVyYW5jZUlkIjowfQ.azpqyF3hSjzQzQCbVoswNm_E9kICXvylAulPObQW0W9u-MARlFdWya63FBSgK4X9AfbyGPNwbGyhxuk4H7TNvg",
);

 $api_url = "[https://api.zoom.us/v2/webinars/182314192](https://mailtrack.io/trace/link/34bed517d3aad45fcdc53915e955e97c1757deff?url=https%3A%2F%2Fapi.zoom.us%2Fv2%2Fwebinars%2F182314192&userId=285235&signature=a10fcce4a91dc900)";

$curl = curl_init();
curl_setopt_array($curl, array(
	CURLOPT_URL => $api_url,
	CURLOPT_SSL_VERIFYPEER => false,
	CURLOPT_RETURNTRANSFER => true,
	CURLOPT_POST => true,
	CURLOPT_POSTFIELDS => $postdata,
	CURLOPT_HTTPHEADER => $header
));
 $response = curl_exec($curl);

```

Thanks,

Jamie

---

<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 3, 2020, 3:49am UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607/4 "2020-04-03T03:49:41Z")

</div>

Hey @jkrugger,

Your access\_token is most likely expired. I looked and that access\_token expired around noon pacific time.

Access\_tokens only last 1 hour, can you [make sure it is refreshed](https://marketplace.zoom.us/docs/guides/auth/oauth#refreshing) and try again?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jkrugger](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jkrugger](https://devforum.zoom.us/u/jkrugger)\
**Post date:** [April 3, 2020, 8:11am UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607/5 "2020-04-03T08:11:24Z")

</div>

Hello Tommy,

I have found problem in script for update a webinar.

I have added this method for update webinar : CURLOPT\_CUSTOMREQUEST =\> ‘PATCH’,  
now it is working fine.

I have seen one problem with zoom api , it is returning null response on update a webinar  
it should return response like a create a webinar. so that we can make sure webinar is updated.

Please check.  
Thanks

---

<div class="post-metadata">

**Author:** ![jkrugger](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jkrugger](https://devforum.zoom.us/u/jkrugger)\
**Post date:** [April 3, 2020, 9:04am UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607/6 "2020-04-03T09:04:40Z")

</div>

Hello Tommy,

I am trying to get attendee list from this api which you suggested  
[https://marketplace.zoom.us/docs/api-reference/zoom-api/reports/reportwebinarparticipants](https://marketplace.zoom.us/docs/api-reference/zoom-api/reports/reportwebinarparticipants)

it is giving me error :  
{“code”:4700,“message”:“Invalid access token, does not contain scopes: [report:read:admin, zms:report:read]”}

Please let me know , how to set above scopes using script because there is not option on website for add above scopes.

Thanks

---

<div class="post-metadata">

**Author:** ![jkrugger](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jkrugger](https://devforum.zoom.us/u/jkrugger)\
**Post date:** [April 3, 2020, 10:00am UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607/7 "2020-04-03T10:00:30Z")

</div>

Hello Tommy,

I have tried to set scope using script like below

$param[‘scope’] = “Oauth, report:read:admin, zms:report:read”;

it ask me for report:read:admin permission when try to connect with zoom  
but access token not return above scopes

[scope] =\> meeting:read meeting:write pac:read pac:write phone:read phone:write recording:read recording:write tsp:read tsp:write user:read user:write user\_profile webinar:read webinar:write

Please check.

Thanks

---

<div class="post-metadata">

**Author:** ![jkrugger](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jkrugger](https://devforum.zoom.us/u/jkrugger)\
**Post date:** [April 3, 2020, 3:24pm UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607/8 "2020-04-03T15:24:59Z")

</div>

Tommy,

We have been able to get everything working with the API except getting attendee data.

For this API function:

[https://marketplace.zoom.us/docs/api-reference/zoom-api/reports/reportwebinarparticipants](https://mailtrack.io/trace/link/275ed1cdc3e3fc41c1d5b59f3fdc609cee6813c1?url=https%3A%2F%2Fmarketplace.zoom.us%2Fdocs%2Fapi-reference%2Fzoom-api%2Freports%2Freportwebinarparticipants&userId=285235&signature=9228a6cdb2fd54eb)

it is returning error :

{“code”:4700,“message”:“Invalid access token, does not contain scopes: [report:read:admin, zms:report:read]”}

We are using a PRO account. We have many users that will be integrating with our app and they will all have PRO accounts with the Webinar option.

Our company provides Continuing Education Credits so we need to verify the attendance for each webinar. Can you please tell us how to get past this error message we are getting?

Thanks,

Jamie

---

<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 3, 2020, 6:47pm UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607/9 "2020-04-03T18:47:43Z")

</div>

Hey @jkrugger,

> [@jkrugger](#):
>
> I have seen one problem with zoom api , it is returning null response on update a webinar  
> it should return response like a create a webinar.

The Update Webinar endpoint does not have a response body. You can check if it worked via the response code of `204`.

> [@jkrugger](#):
>
> Please let me know , how to set above scopes using script because there is not option on website for add above scopes.

To use the [report endpoints](https://marketplace.zoom.us/docs/api-reference/zoom-api/reports/reportwebinarparticipants), make sure you are on a [Pro or above Zoom plan](https://zoom.us/pricing), then the scopes will appear in your apps settings on the marketplace.

> [@jkrugger](#):
>
> For this API function:
> 
> [https://marketplace.zoom.us/docs/api-reference/zoom-api/reports/reportwebinarparticipants](https://mailtrack.io/trace/link/275ed1cdc3e3fc41c1d5b59f3fdc609cee6813c1?url=https%3A%2F%2Fmarketplace.zoom.us%2Fdocs%2Fapi-reference%2Fzoom-api%2Freports%2Freportwebinarparticipants&userId=285235&signature=9228a6cdb2fd54eb)
> 
> it is returning error :
> 
> {“code”:4700,“message”:“Invalid access token, does not contain scopes: [report:read:admin, zms:report:read]”}
> 
> We are using a PRO account. We have many users that will be integrating with our app and they will all have PRO accounts with the Webinar option.

Do you have the scope selected in your app marketplace settings? Please send a screenshot so I can verify.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![bdeanindy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bdeanindy/32/154_2.png) [@bdeanindy](https://devforum.zoom.us/u/bdeanindy)\
**Post date:** [April 3, 2020, 7:58pm UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607/10 "2020-04-03T19:58:18Z")

</div>

Adding to @tommy good suggestions above.  
If you add those new scopes, you will need to re-authorize the app, so your access token picks up those changes.

---

<div class="post-metadata">

**Author:** ![jkrugger](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jkrugger](https://devforum.zoom.us/u/jkrugger)\
**Post date:** [April 4, 2020, 5:27pm UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607/11 "2020-04-04T17:27:10Z")

</div>

Hello Support Team

I have new app with account level.

I have reauthorized it and it is returning scopes :

[scope] =\> account:master account:read:admin account:write:admin billing:master contact:read:admin dashboard:master dashboard\_crc:read:admin dashboard\_home:read:admin dashboard\_im:read:admin dashboard\_meetings:read:admin dashboard\_webinars:read:admin dashboard\_zr:read:admin group:master group:read:admin group:write:admin h323:read:admin h323:write:admin meeting:master meeting:read:admin meeting:write:admin recording:master recording:read:admin recording:write:admin user:master user:read:admin user:write:admin webinar:master webinar:read:admin webinar:write:admin

but I am still not able to get attendee list.

Here is error :  
{“code”:4700,“message”:“Invalid access token, does not contain scopes: [report:read:admin, zms:report:read]”}

here is code which I am using for get attendee list :

```
$api_url = "https://api.zoom.us/v2/report/webinars/ffyrI9ZYQOmaq9BBWVIACA==/participants";

```

$header = array(  
“Authorization: Bearer ]”  
);

```
$curl = curl_init();
curl_setopt_array($curl, array(
	CURLOPT_URL => $api_url,
	CURLOPT_SSL_VERIFYPEER => false,
	CURLOPT_RETURNTRANSFER => true,
	CURLOPT_CUSTOMREQUEST => 'GET',
	CURLOPT_HTTPHEADER => $header
));

 $response = curl_exec($curl);

```

Please check and let me know what I am doing wrong.

Please check attachment for scope enabled.

 ![scope 3](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/6/6f4e4c731e430608e8e4f1484961606ff40715f5.png) ![scope 3-3](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/2eaaa20ea079c0dff459d48e2218f4a53f8dbb7d.png) ![scope page 1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/c/c075c7e41367b95404d4bae48fbe52b856c05326.png) ![scope page 1-2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/3296e70c5fecb10a6bd5cbe3dc2e73dc679471e1.png) ![scope page 2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/5/570ad08180d74faaae9bfd9be7f729f0acf504d4.png) ![scope page 2-2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/9/9adcb9b0a205298bbf640408fc0b402490f40b18.png)

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:** [April 6, 2020, 5:29pm UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607/12 "2020-04-06T17:29:00Z")

</div>

Hey @jkrugger,

You do not have the report scopes. In order to call the [report endpoints](https://marketplace.zoom.us/docs/api-reference/zoom-api/reports/reportwebinarparticipants) as stated in the docs, you need the `report:read:admin` scope.

Please see this article to get access to reports:

> **[Getting started with reports](https://support.zoom.us/hc/en-us/articles/201363213-Getting-started-with-reports)**
>
> Overview
> The Reports section of the website is a powerful tool that provides account owners and admins with various account, meeting, and webinar statistics to review how your organization is utili...

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jkrugger](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jkrugger](https://devforum.zoom.us/u/jkrugger)\
**Post date:** [April 7, 2020, 2:44am UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607/13 "2020-04-07T02:44:52Z")

</div>

Hello Tommy

I am trying to get this scope using script: report:read:admin

I am passing this scope request :  
$param[‘scope’] = “Oauth, report:read:admin, zms:report:read”;

it is not returning above scope in return response

[scope] =\> account:master account:read:admin account:write:admin billing:master contact:read:admin dashboard:master dashboard\_crc:read:admin dashboard\_home:read:admin dashboard\_im:read:admin dashboard\_meetings:read:admin dashboard\_webinars:read:admin dashboard\_zr:read:admin group:master group:read:admin group:write:admin h323:read:admin h323:write:admin meeting:master meeting:read:admin meeting:write:admin recording:master recording:read:admin recording:write:admin user:master user:read:admin user:write:admin webinar:master webinar:read:admin webinar:write:admin

Please check.  
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:** [April 7, 2020, 5:42am UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607/14 "2020-04-07T05:42:52Z")

</div>

Hey @jkrugger,

Are you able to choose that scope in the Zoom App Marketplace settings for your App? It needs to be selected there, and I did not see it in your screenshots.

Here are the prereqs for the reports feature:

> **[Getting started with reports](https://support.zoom.us/hc/en-us/articles/201363213-Getting-started-with-reports)**
>
> Overview
> The Reports section of the website is a powerful tool that provides account owners and admins with various account, meeting, and webinar statistics to review how your organization is utili...

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![jkrugger](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jkrugger](https://devforum.zoom.us/u/jkrugger)\
**Post date:** [April 8, 2020, 1:42am UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607/15 "2020-04-08T01:42:10Z")

</div>

Hello Tommy,

Thanks for your help. Now it is working fine. I am able to get attendee list.

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:** [April 8, 2020, 7:54am UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607/16 "2020-04-08T07:54:59Z")

</div>

Hey @jkrugger, happy to hear you got it working! 🙂

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, 8:17pm UTC](https://devforum.zoom.us/t/access-token-not-working-for-get-attendee-list-from-webinar/10607/17 "2020-08-21T20:17:53Z")

</div>

Closed on August 21, 2020, 8:17pm UTC


