# \[Zoom Meeting Master API\] API returning error despite assigning correct API scopes

**URL:** <https://devforum.zoom.us/t/zoom-meeting-master-api-api-returning-error-despite-assigning-correct-api-scopes/97434>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [October 26, 2023, 10:44pm UTC](https://devforum.zoom.us/t/zoom-meeting-master-api-api-returning-error-despite-assigning-correct-api-scopes/97434 "2023-10-26T22:44:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![vignesh.natarajan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vignesh.natarajan/32/53345_2.png) [@vignesh.natarajan](https://devforum.zoom.us/u/vignesh.natarajan)\
**Post date:** [October 26, 2023, 10:44pm UTC](https://devforum.zoom.us/t/zoom-meeting-master-api-api-returning-error-despite-assigning-correct-api-scopes/97434/1 "2023-10-26T22:44:40Z")

</div>

I have assigned a server to server OAuth application the following scopes: role:master, user:read:admin, group:read:admin. I need to hit [the get role information](https://developers.zoom.us/docs/api/rest/reference/zoom-api/ma/#operation/getRoleInformation) endpoint. I am able to acquire an access token via an “account\_credentials” grant type. I can confirm the access token is valid as I can retreive users and groups. But when I try to query the role master endpoint, I get the following error:

```auto
{"code":4711,"message":"Invalid access token, does not contain scopes:[role:master, role:write:master, role:read:master]."}

```

This is unexpected because the access token response object says I have the following scopes:

```auto
{"access_token":"[redacted]","token_type":"bearer","expires_in":3599,"scope":"user:read:admin account:read:admin group:read:admin role:master"}

```

Please advise on how I should go about resolving this issue. I don’t see any “role:read:master” and “role:write:master” on my application, just “role:master”. Thanks.

Additional Context that probably helps: Using a Zoom Pro account and am using the owner user to generate the application.

---

<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 26, 2023, 10:52pm UTC](https://devforum.zoom.us/t/zoom-meeting-master-api-api-returning-error-despite-assigning-correct-api-scopes/97434/2 "2023-10-26T22:52:56Z")

</div>

Hi @vignesh.natarajan

> [@vignesh.natarajan](#):
>
> Additional Context that probably helps: Using a Zoom Pro account and am using the owner user to generate the application.

Are you using the owner user to generate the access token as well?

If not, make sure this permission is checked under your Zoom portal:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/2/425050d1b8b7e77ba2d855dea5b6f0b2e35a1fa5.png)

To confirm, you are expecting to use [Master API endpoints](https://developers.zoom.us/docs/api/rest/master-account-apis/)?

---

<div class="post-metadata">

**Author:** ![vignesh.natarajan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vignesh.natarajan/32/53345_2.png) [@vignesh.natarajan](https://devforum.zoom.us/u/vignesh.natarajan)\
**Post date:** [October 27, 2023, 2:00am UTC](https://devforum.zoom.us/t/zoom-meeting-master-api-api-returning-error-despite-assigning-correct-api-scopes/97434/4 "2023-10-27T02:00:56Z")

</div>

Yes, I’m using the owner account to generate the credentials, and yes, I’m trying to use the Master API.

---

<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 27, 2023, 1:26pm UTC](https://devforum.zoom.us/t/zoom-meeting-master-api-api-returning-error-despite-assigning-correct-api-scopes/97434/5 "2023-10-27T13:26:55Z")

</div>

> [@vignesh.natarajan](#):
>
> I’m trying to use the Master API.

Yes, but can you please confirm you are a master account as described in the linked documentation above?

---

<div class="post-metadata">

**Author:** ![britgwaltney](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/britgwaltney/32/53800_2.png) [@britgwaltney](https://devforum.zoom.us/u/britgwaltney)\
**Post date:** [November 12, 2023, 7:16pm UTC](https://devforum.zoom.us/t/zoom-meeting-master-api-api-returning-error-despite-assigning-correct-api-scopes/97434/6 "2023-11-12T19:16:51Z")

</div>

Did this ever get figured out? I’m so confused. I’m the only user in my account. When I refresh the token it says I have all the scopes needed but kicks back this error every time. Is there a magic box I need to check somewhere?

---

<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:** [November 14, 2023, 3:02am UTC](https://devforum.zoom.us/t/zoom-meeting-master-api-api-returning-error-despite-assigning-correct-api-scopes/97434/7 "2023-11-14T03:02:24Z")

</div>

Hi @britgwaltney ,

> [@britgwaltney](#):
>
> Did this ever get figured out? I’m so confused. I’m the only user in my account.

If you are the only user on your account, it’s unlikely you have [Master Account configuration](https://developers.zoom.us/docs/api/rest/master-account-apis/).

Which endpoint are you trying to use?

---

<div class="post-metadata">

**Author:** ![britgwaltney](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/britgwaltney/32/53800_2.png) [@britgwaltney](https://devforum.zoom.us/u/britgwaltney)\
**Post date:** [November 14, 2023, 4:48pm UTC](https://devforum.zoom.us/t/zoom-meeting-master-api-api-returning-error-despite-assigning-correct-api-scopes/97434/8 "2023-11-14T16:48:34Z")

</div>

I ended up figuring this out. I was assuming a master account was any account that had multiple users under it. This is not the case. If it’s a normal zoom account, you can simply use the /v2/users endpoint. No need to pass the account ID.

PS: The error message returned by the API is very misleading. No scopes were actually missing even though it said they were.

---

<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:** [November 14, 2023, 6:00pm UTC](https://devforum.zoom.us/t/zoom-meeting-master-api-api-returning-error-despite-assigning-correct-api-scopes/97434/9 "2023-11-14T18:00:52Z")

</div>

Hi @britgwaltney thanks for your feedback and glad you resolved to use the correct endpoint for your account type!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [November 15, 2023, 6:01pm UTC](https://devforum.zoom.us/t/zoom-meeting-master-api-api-returning-error-despite-assigning-correct-api-scopes/97434/10 "2023-11-15T18:01:05Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
