# Marketplace app not working due to scopes error despite adding scope

**URL:** <https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818>\
**Category:** Meetings\
**Tags:** marketplace\
**Created:** [September 3, 2024, 3:20pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818 "2024-09-03T15:20:02Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![bbrown](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@bbrown](https://devforum.zoom.us/u/bbrown)\
**Post date:** [September 25, 2024, 7:37pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/23 "2024-09-25T19:37:47Z")

</div>

Hi Gianni, since I kicked off this issue I am confirming that @bmccracken is the PjM on our team and @dnelson1 is our Lead BE dev. Trace (shelms1) has recently moved to another team so we’d like to consolidate conversations ASAP given the blocker on our end. Hope this helps, thanks!

---

<div class="post-metadata">

**Author:** ![bbrown](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@bbrown](https://devforum.zoom.us/u/bbrown)\
**Post date:** [September 26, 2024, 7:06pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/24 "2024-09-26T19:06:31Z")

</div>

@gianni.zoom just following up on the above to make sure we’re okay to move forward. Thanks!

---

<div class="post-metadata">

**Author:** ![shelms1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shelms1/32/63017_2.png) [@shelms1](https://devforum.zoom.us/u/shelms1)\
**Post date:** [September 30, 2024, 3:38pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/25 "2024-09-30T15:38:43Z")

</div>

Hi @gianni.zoom, yeah I changed teams and now @bbrown, @dnelson1, and @bmccracken will be taking over this work. Thank you for all of your help! 😃

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [September 30, 2024, 7:11pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/26 "2024-09-30T19:11:51Z")

</div>

Hi @bmccracken @bbrown @dnelson1 thanks so much, I’ll update shortly!

---

<div class="post-metadata">

**Author:** ![bbrown](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@bbrown](https://devforum.zoom.us/u/bbrown)\
**Post date:** [September 30, 2024, 8:02pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/27 "2024-09-30T20:02:17Z")

</div>

@gianni.zoom appreciate the update. For the sake of understanding where we are at in the process, this issue was submitted 27 days ago, and converted to a ticket 20 days ago. Is this being actively worked on? We need to start looking into alternatives soon given our timeline, so if you could help me understand a potential timeline or ETA that would be very helpful on our end. Thanks!

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [September 30, 2024, 10:11pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/28 "2024-09-30T22:11:54Z")

</div>

Hi @bbrown , with the internal review, your team is encouraged to ensure that the accessing user has the same permissions assigned, whether at the role level or the user level when accessing the API. Can you please double check and confirm the following:

- what is the user role (e.x. admin, owner) for person querying the API
- [whether that user role has all permissions added in the web portal](https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0064983)
- the scopes assigned are relevant for the user access

I believe you have done so, but I need to ask in good faith again for the internal teammate who has looked at the backend review for the behavior you’re seeing.

Additionally, I initially shared with @shelms1 about the app transfer but will pull you into a private message and re-share. EDIT: sent private message with the details I sent to him just now. Check your notifications to click into the private message and see the review/action items.

---

<div class="post-metadata">

**Author:** ![tswinehart](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tswinehart/32/63003_2.png) [@tswinehart](https://devforum.zoom.us/u/tswinehart)\
**Post date:** [October 1, 2024, 3:50pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/29 "2024-10-01T15:50:33Z")

</div>

Hi @gianni.zoom, just checking in to see if this is still being looked into? It’s a pretty major blocker with being able to develop for Server-to-Server and master scopes.

---

<div class="post-metadata">

**Author:** ![dnelson1](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@dnelson1](https://devforum.zoom.us/u/dnelson1)\
**Post date:** [October 1, 2024, 7:11pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/30 "2024-10-01T19:11:56Z")

</div>

Thank you, @gianni.zoom: this is a server-to-server app, so I don’t think “user role” for the person querying for the API is relevant.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [October 1, 2024, 8:53pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/31 "2024-10-01T20:53:00Z")

</div>

Hi @dnelson1 , it is relevant. Can you please respond to the private message with the full details of what we looked into? Thank you!

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [October 1, 2024, 9:08pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/32 "2024-10-01T21:08:37Z")

</div>

@tswinehart ,

For the trace scope error the root of the issue is typically the following:

1. _The mismatch between the app’s scopes and the user’s permissions_ .
2. _Attempting to access Sub-accounts APIs using the Master account ID_ → These APIs, such as: `/v2/accounts/{accountId}/ ******* `, are specifically designed for Sub-accounts and should not be used with the Account IDs of the master account or Account. For more information, please visit: [![](https://developers.zoom.us/svgs/favicon.svg)Master Account API](https://developers.zoom.us/docs/api/rest/master-account-apis/)

Given you are the account owner on the master-subaccount structure and have the correct scopes applied, I believe there is another issue, but am experiencing a bit of pushback with the investigation. Hoping to resolve soon. Can you please confirm you are the master account owner and that is the role from which you are calling the API?

---

<div class="post-metadata">

**Author:** ![acdrake](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/acdrake/32/63983_2.png) [@acdrake](https://devforum.zoom.us/u/acdrake)\
**Post date:** [October 9, 2024, 2:27pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/33 "2024-10-09T14:27:35Z")

</div>

Hi Gianni,

Are there any updates on ZSEE-141967? I am attempting to call

GET /accounts/{accountId}/users

with a Zoom marketplace application (server-to-server oauth) that was created about a month ago, and I am getting the following response:

{  
“code”: 4711,  
“message”: “Invalid access token, does not contain scopes:[user:read:list\_users:master].”  
}

I have confirmed that the scope of the token being used is “recording:master user:read:list\_users:master”, and I have an Admin account.

Thanks for your help,  
Aaron Drake

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [October 11, 2024, 9:11pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/34 "2024-10-11T21:11:37Z")

</div>

Hi @acdrake are you passing a sub account id in `accountId`? You cannot use the master account id.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [October 11, 2024, 9:14pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/35 "2024-10-11T21:14:08Z")

</div>

Hi all, please confirm if you are using a subaccount id or master account id in that request call. These APIs, such as: `/v2/accounts/{accountId}/ ******* ` , are specifically designed for Sub-accounts and should not be used with the Account IDs of the master account or Account

---

<div class="post-metadata">

**Author:** ![acdrake](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/acdrake/32/63983_2.png) [@acdrake](https://devforum.zoom.us/u/acdrake)\
**Post date:** [October 14, 2024, 7:18pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/36 "2024-10-14T19:18:06Z")

</div>

Yes, I was attempting to use the master account ID. However, one of my coworkers said he was previously able to call this API using the master ID. Is this functionality that is now broken? Is there any other way to fetch all user data efficiently?

Thanks,  
Aaron

---

<div class="post-metadata">

**Author:** ![bbrown](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@bbrown](https://devforum.zoom.us/u/bbrown)\
**Post date:** [October 14, 2024, 8:20pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/37 "2024-10-14T20:20:29Z")

</div>

Is there another API that works with a master account?

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [October 15, 2024, 7:13pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/38 "2024-10-15T19:13:07Z")

</div>

Hi @bbrown @acdrake , if you are looking for information for the master account, use “me” in place of accountId:

`/v2/accounts/me/ ******* `

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/2/92eac49c3aa16e67a5782b008fcf7e3c972b43ae.png)

> **[Accounts APIs - Zoom Developers](https://developers.zoom.us/docs/api/accounts/#tag/accounts/GET/accounts/%7BaccountId%7D/settings)**
>
> API reference for: Accounts

I made the wrong assumption you were running to this error while trying to query for a subaccount.

Can you please run the request with `me` and let me know if it works?

---

<div class="post-metadata">

**Author:** ![acdrake](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/acdrake/32/63983_2.png) [@acdrake](https://devforum.zoom.us/u/acdrake)\
**Post date:** [October 15, 2024, 8:14pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/39 "2024-10-15T20:14:25Z")

</div>

Thanks for clarifying, Gianni.

I just tried making a GET request to /v2/accounts/me/users, and I’m getting back the following error response:

{  
“code”: 4711,  
“message”: “Invalid access token, does not contain scopes:[user:read:list\_users:master].”  
}

Prior to making this call, I attempted to get a new token by making a call to /oauth/token?grant\_type=account\_credentials&account\_id={account\_id}, and this is the info for the token being used:

Token Name: access\_token

Access Token: ey…fw

Token Type: bearer

expires\_in: 3599

scope: recording:master user:read:list\_users:master

api\_url: `https://api.zoom.us`

access\_token\_url: `https://zoom.us/oauth/token?grant_type=account_credentials&account_id={account_id}`

client\_id: {client\_id}

client\_secret: {client\_secret}

grant\_type: password\_credentials

client\_authentication: header

refresh\_token\_url: `https://zoom.us/oauth/token?grant_type=account_credentials&account_id={account_id}`

timestamp: 1729022783762

Should I be doing something different to try to get the token if I’m using “me” as the account?

Thanks,  
Aaron

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [October 15, 2024, 9:54pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/40 "2024-10-15T21:54:47Z")

</div>

Hi @acdrake , your token seems to be generated correct, but since you’re looking to see your own master’s accounts’ users, please use this endpoint: [Users APIs - Zoom Developers](https://developers.zoom.us/docs/api/users/#tag/users/GET/users)

The error message you received does not not seem relevant.

---

<div class="post-metadata">

**Author:** ![dnelson1](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@dnelson1](https://devforum.zoom.us/u/dnelson1)\
**Post date:** [October 16, 2024, 1:05am UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/41 "2024-10-16T01:05:35Z")

</div>

`me` didn’t work, but following your advice on using a non-account URL, I found past\_meetings/{meetingId}/participants, which may achieve what we need. I’ve asked my colleague why we’re using the `accounts/{account_id/me}/metrics/meetings/{meetingId}/participants` endpoint instead, but assuming the former is ok, I think we’re onto something (although I’m told that we’ll need sub-accounts to handle dev/stage/prod environments, so I may be able to try the latter once those are activated in our account).

Thank you for your help, Gianni.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [October 22, 2024, 1:23pm UTC](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818/42 "2024-10-22T13:23:20Z")

</div>

Hi @dnelson1 see my response above your last one for an alternative and please let me know if it works since you’re checking your own account.

> [@dnelson1](#):
>
> I’ve asked my colleague why we’re using the `accounts/{account_id/me}/metrics/meetings/{meetingId}/participants` endpoint instead, but assuming the former is ok, I think we’re onto something (although I’m told that we’ll need sub-accounts to handle dev/stage/prod environments, so I may be able to try the latter once those are activated in our account).

The [master account endpoints](https://developers.zoom.us/docs/api/rest/master-account-apis/) are only if you have sub accounts to your master account. I’ve hyperlinked the documentation so you can see the scope of use outlined there.

[Previous page](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818.md?page=1)

[Next page](https://devforum.zoom.us/t/marketplace-app-not-working-due-to-scopes-error-despite-adding-scope/116818.md?page=3)
