# Invalid access token OAuth

**URL:** <https://devforum.zoom.us/t/invalid-access-token-oauth/21368>\
**Category:** API and Webhooks\
**Created:** [June 15, 2020, 10:58am UTC](https://devforum.zoom.us/t/invalid-access-token-oauth/21368 "2020-06-15T10:58:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![erikttv](https://avatars.discourse-cdn.com/v4/letter/e/3ec8ea/32.png) [@erikttv](https://devforum.zoom.us/u/erikttv)\
**Post date:** [June 15, 2020, 10:58am UTC](https://devforum.zoom.us/t/invalid-access-token-oauth/21368/1 "2020-06-15T10:58:50Z")

</div>

**Description**  
Hi!  
I want to use Oauth2.0, but I am struggling to get it right. I am using the zoom oauth sample app (see link in how to reproduce) to get a hold of the access token and the refresh token. This works fine. However, when I send a GET for the current user (see endpoint below), I am getting “Invalid access token, does not contain scopes: [user:write:admin, user:read:admin, user:read, user:write, zms:user:write, user\_profile, zms:user:read].” The full error message is down below. What am I missing?

**Error**  
“code”: 4700,  
“message”: “Invalid access token, does not contain scopes: [user:write:admin, user:read:admin, user:read, user:write, zms:user:write, user\_profile, zms:user:read].”

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

**Which Endpoint?**  
[https://api.zoom.us/v2/users/me](https://api.zoom.us/v2/users/me)

**How To Reproduce:**  
Steps to reproduce the behavior:

> **[zoom/zoom-oauth-sample-app](https://github.com/zoom/zoom-oauth-sample-app)**
>
> Sample Zoom Oauth App NodeJS app to call Zoom's APIs - zoom/zoom-oauth-sample-app

---

<div class="post-metadata">

**Author:** ![erikttv](https://avatars.discourse-cdn.com/v4/letter/e/3ec8ea/32.png) [@erikttv](https://devforum.zoom.us/u/erikttv)\
**Post date:** [June 15, 2020, 1:48pm UTC](https://devforum.zoom.us/t/invalid-access-token-oauth/21368/2 "2020-06-15T13:48:32Z")

</div>

This issue was solved. Forgot to add required scopes in the app marketplace.

---

<div class="post-metadata">

**Author:** ![fodun.developer](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fodun.developer/32/10492_2.png) [@fodun.developer](https://devforum.zoom.us/u/fodun.developer)\
**Post date:** [June 15, 2020, 3:35pm UTC](https://devforum.zoom.us/t/invalid-access-token-oauth/21368/3 "2020-06-15T15:35:02Z")

</div>

Hi, I’m also working on the Zoom OAuth sample app and am receiving an error after authorizing my app to give zoom access. I was wondering if you encountered this error or a similar one while developing:

SyntaxError: Unexpected token u in JSON at position 0  
at JSON.parse ()  
at Request.\_callback (/Users/username/Desktop/zoom-oauth-sample-app/index.js:29:25)  
at self.callback (/Users/username/Desktop/zoom-oauth-sample-app/node\_modules/request/request.js:185:22)  
at Request.emit (events.js:315:20)  
at Auth.onRequest (/Users/username/Desktop/zoom-oauth-sample-app/node\_modules/request/lib/auth.js:132:18)  
at Request.auth (/Users/username/Desktop/zoom-oauth-sample-app/node\_modules/request/request.js:1341:14)  
at /Users/username/Desktop/zoom-oauth-sample-app/index.js:82:12  
at Layer.handle [as handle\_request] (/Users/username/Desktop/zoom-oauth-sample-app/node\_modules/express/lib/router/layer.js:95:5)  
at next (/Users/username/Desktop/zoom-oauth-sample-app/node\_modules/express/lib/router/route.js:137:13)  
at Route.dispatch (/Users/username/Desktop/zoom-oauth-sample-app/node\_modules/express/lib/router/route.js:112:3)

Thanks in advance for any help you can provide!

---

<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:** [June 18, 2020, 7:21am UTC](https://devforum.zoom.us/t/invalid-access-token-oauth/21368/4 "2020-06-18T07:21:50Z")

</div>

Hey @erikttv, happy to hear you figured out the issue! 🙂

Thanks,  
Tommy

---

<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:** [June 18, 2020, 7:22am UTC](https://devforum.zoom.us/t/invalid-access-token-oauth/21368/5 "2020-06-18T07:22:25Z")

</div>

Hey @fodun.developer,

Please see my reply to you here:

> [@Zoom-oath-sample-app SyntaxError: Unexpected token u in JSON at position 0](https://devforum.zoom.us/t/zoom-oath-sample-app-syntaxerror-unexpected-token-u-in-json-at-position-0/21381/2):
>
> Hey @fodun.developer, Please see the following threads for the same issue that developers found the solution to: Let me know if that helps! slight_smile Thanks, Tommy

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, 10:07pm UTC](https://devforum.zoom.us/t/invalid-access-token-oauth/21368/6 "2020-08-21T22:07:41Z")

</div>


