List meetings fails with "Invalid access token, does not contain scopes: ..."

Description

I’m getting the following response when using the /users/{userId}/meetings endpoint:

API call  {
  code: 4700,
  message: 'Invalid access token, does not contain scopes: [zms:meeting:read, meeting:read:admin, zms:meeting:write, meeting:write:admin]'
}

I know the Oauth authentication works along with the /users/me endpoint because I can see my own profile.

I’ve already added all possible scopes in my Marketplace Oauth App.

Error

  "code": 4700,
  "message": "Invalid access token, does not contain scopes: [zms:meeting:read, meeting:read:admin, zms:meeting:write, meeting:write:admin]"

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

Which Endpoint/s?
https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetings

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

  1. Clone my demo repo: https://github.com/masaok/zoom-oauth-demo
  2. Copy and edit .env.sample to .env
  3. npm install
  4. npm run start

Screenshots (If applicable)

Additional context
If you go to: localhost port 4000 in a browser, you will see the account profile load correctly, so I know Oauth is working correctly, and a call to the API works.

However, when try to get a list of user meetings, it fails as shown above.

Also, I’ve added all possible scopes to my Oauth app. Here are the meeting-related ones:
meeting:read, meeting:write (I would put a screenshot, but I’m only allowed one screenshot as a new user)

Hi @masao,

Happy to help.

You are trying to make account level operations from a user-level app. Please create an account level app to perform these operations.

To know more, please visit: https://marketplace.zoom.us/docs/guides/getting-started/app-types#account-level-user-managed-apps

Let me know if this helps.

Thanks,
Ojus

1 Like

Thank you @Ojus … that works.

Hey @masao,

For listing meetings with a user level OAuth app, pass in me instead of the userId:

/users/me/meetings

Thanks,
Tommy

1 Like