# Invalid access token, does not any contain scope

**URL:** <https://devforum.zoom.us/t/invalid-access-token-does-not-any-contain-scope/68139>\
**Category:** Users and Groups\
**Created:** [April 26, 2022, 3:22pm UTC](https://devforum.zoom.us/t/invalid-access-token-does-not-any-contain-scope/68139 "2022-04-26T15:22:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nbecirovic](https://avatars.discourse-cdn.com/v4/letter/n/9d8465/32.png) [@nbecirovic](https://devforum.zoom.us/u/nbecirovic)\
**Post date:** [April 26, 2022, 3:22pm UTC](https://devforum.zoom.us/t/invalid-access-token-does-not-any-contain-scope/68139/1 "2022-04-26T15:22:34Z")

</div>

I’m trying to set up API call to get user information and got the access token with Postman but no matter what I do I keep getting the message:  
Invalid access token, does not any contain scope.

I have app set up with Scope user:master and user:read:admin but doesn’t seem to make any difference.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [April 26, 2022, 8:24pm UTC](https://devforum.zoom.us/t/invalid-access-token-does-not-any-contain-scope/68139/2 "2022-04-26T20:24:14Z")

</div>

Hey @nbecirovic

Thanks for reaching out to the Zoom Developer Forum, I am happy to help here!  
Could you please confirm what endpoint are you trying to call?

Cheers,  
Elisa

---

<div class="post-metadata">

**Author:** ![nbecirovic](https://avatars.discourse-cdn.com/v4/letter/n/9d8465/32.png) [@nbecirovic](https://devforum.zoom.us/u/nbecirovic)\
**Post date:** [April 28, 2022, 2:17pm UTC](https://devforum.zoom.us/t/invalid-access-token-does-not-any-contain-scope/68139/3 "2022-04-28T14:17:05Z")

</div>

Actually I’m trying to get a query (GET) for all of our user base.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [May 2, 2022, 2:49pm UTC](https://devforum.zoom.us/t/invalid-access-token-does-not-any-contain-scope/68139/4 "2022-05-02T14:49:37Z")

</div>

Hi @nbecirovic  
Just to confirm .. are you still experiencing this?  
Feel free to follow this guide to troubleshoot said error:

> [@Guide: Making a Zoom API Call with OAuth Credentials in Postman](https://devforum.zoom.us/t/guide-making-a-zoom-api-call-with-oauth-credentials-in-postman/64538):
>
> To publish an app on the Zoom Marketplace you must create an [OAuth app](https://marketplace.zoom.us/docs/guides/build/oauth-app/). When you’re ready to test making API calls, download the latest version of Postman and import the Zoom API collections following the steps outlined [here](https://marketplace.zoom.us/docs/guides/guides/postman/using-postman-to-test-zoom-apis/). There are Three Ways to Set up OAuth in Postman to Make API Requests We’re going to go through three ways to set up our OAuth application credentials to successfully authorize and access the Zoom API to make requests. The “Easy” Difficulty OAuth 2.0 Set Up in Postman We’…

Best,  
Elisa

---

<div class="post-metadata">

**Author:** ![nbecirovic](https://avatars.discourse-cdn.com/v4/letter/n/9d8465/32.png) [@nbecirovic](https://devforum.zoom.us/u/nbecirovic)\
**Post date:** [May 2, 2022, 2:53pm UTC](https://devforum.zoom.us/t/invalid-access-token-does-not-any-contain-scope/68139/5 "2022-05-02T14:53:40Z")

</div>

Hey Elisa,

Is there a way I can get all data to return with GET {{baseUrl}}/phone/users?

Right now it’s just returning 1 page at a time with next page token and token changes with every page which is giving me issue.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [May 2, 2022, 3:23pm UTC](https://devforum.zoom.us/t/invalid-access-token-does-not-any-contain-scope/68139/6 "2022-05-02T15:23:14Z")

</div>

Hi @nbecirovic  
As you can see in our Docs, the next page token is used to paginate through large results and this is the expected behavior, it will change with every call you make

 ![Screen Shot 2022-05-02 at 11.21.38 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/d/6d7b07584ba1afe7f8eab321b58ba003b16b230e.png)

Cheers,  
Elisa

---

<div class="post-metadata">

**Author:** ![nbecirovic](https://avatars.discourse-cdn.com/v4/letter/n/9d8465/32.png) [@nbecirovic](https://devforum.zoom.us/u/nbecirovic)\
**Post date:** [May 2, 2022, 6:05pm UTC](https://devforum.zoom.us/t/invalid-access-token-does-not-any-contain-scope/68139/7 "2022-05-02T18:05:48Z")

</div>

Do you guys have any examples on how to iterate through each page with next\_page\_token?

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [May 2, 2022, 6:52pm UTC](https://devforum.zoom.us/t/invalid-access-token-does-not-any-contain-scope/68139/8 "2022-05-02T18:52:46Z")

</div>

@nbecirovic Unfortunately we do not. But it is a great suggestion/recommendation that I will keep in mind!  
Best,  
Elisa

---

<div class="post-metadata">

**Author:** ![nbecirovic](https://avatars.discourse-cdn.com/v4/letter/n/9d8465/32.png) [@nbecirovic](https://devforum.zoom.us/u/nbecirovic)\
**Post date:** [May 2, 2022, 7:08pm UTC](https://devforum.zoom.us/t/invalid-access-token-does-not-any-contain-scope/68139/9 "2022-05-02T19:08:03Z")

</div>

So for our implementation when I go under User Management \> Users it shows a total of 5,337 results which sounds about right. But when I run the following:

GET {{baseUrl}}/phone/users (it returns only 747 records)

and for:

GET {{baseUrl}}/phone/numbers (it only returns 226 records)

Am I missing something here? These are totals, not per page results. Which GET would I need to use to return our entire user base as shown on the User Management \> Users page?

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [May 2, 2022, 7:48pm UTC](https://devforum.zoom.us/t/invalid-access-token-does-not-any-contain-scope/68139/10 "2022-05-02T19:48:49Z")

</div>

Hi @nbecirovic  
To get all the users in your account you should be calling the following endpoint:

> **[Zoom Meeting API](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/)**
>
> The Zoom Meeting APIs let developers to access information from Zoom. You can use this API to build private services or public applications on the Zoom App Marketplace. To learn how to get your credentials and create private/p...

Make sure to pass the appropriate “status” query parameter when calling this endpoint

Hope this helps,  
Elisa
