# Getting Invalid access token during OAuth

**URL:** <https://devforum.zoom.us/t/getting-invalid-access-token-during-oauth/85444>\
**Category:** Authentication\
**Created:** [March 27, 2023, 9:52pm UTC](https://devforum.zoom.us/t/getting-invalid-access-token-during-oauth/85444 "2023-03-27T21:52:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erez](https://avatars.discourse-cdn.com/v4/letter/e/e47c2d/32.png) [@erez](https://devforum.zoom.us/u/erez)\
**Post date:** [March 27, 2023, 9:52pm UTC](https://devforum.zoom.us/t/getting-invalid-access-token-during-oauth/85444/1 "2023-03-27T21:52:20Z")

</div>

For some reason, i’m getting this error when connecting an OAuth app

“Invalid access token, does not contain scopes:[user:write:admin, user:read:admin, user:read, use (truncated…)”

This happens when calling the “[https://api.zoom.us/v2/users/me](https://api.zoom.us/v2/users/me)” endpoint with the access token.  
I’ve tested the same app with the development credentials and it works perfectly. I’ve also tested it with another app that we’re using for our staging environment and it works with the production credentials.

Both apps have the same scopes:  
meeting:write  
user:read

Not sure what else to try…

---

<div class="post-metadata">

**Author:** ![erez](https://avatars.discourse-cdn.com/v4/letter/e/e47c2d/32.png) [@erez](https://devforum.zoom.us/u/erez)\
**Post date:** [March 28, 2023, 9:09pm UTC](https://devforum.zoom.us/t/getting-invalid-access-token-during-oauth/85444/2 "2023-03-28T21:09:29Z")

</div>

Alright, after debugging locally, I realised I had to regenerate the publishable URL and then it all worked.

Hopefully this helps anybody else that had the same issue

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [March 28, 2023, 9:37pm UTC](https://devforum.zoom.us/t/getting-invalid-access-token-during-oauth/85444/3 "2023-03-28T21:37:09Z")

</div>

Glad to hear you were able to resolve the behavior you were seeing, @erez ! Here is a similar which provides more reference resources for other folks who may stumble on this thread :

> [@Unable get meeting details through REST API v2](https://devforum.zoom.us/t/unable-get-meeting-details-through-rest-api-v2/85409/8):
>
> Happy to help @khoros-webinar-2 ! Please see this step-by-step video demonstrating how to create and configure a Zoom Marketplace OAuth app and manually request an User Authorization & Access Token with Zoom Postman Public Workspace: [Zoom Postman Public Workspace: Request User Authorization & Access Token Workflow Demo Video](https://www.loom.com/share/b967cf6957674492b0fb9a21b4ad9aec)[https://www.loom.com/share/2f26874e5aef40efb65e0d98fb32d1bb](https://www.loom.com/share/2f26874e5aef40efb65e0d98fb32d1bb)
