# When creating a Zoom user with a valid token in an organization, it returns an error No privilege

**URL:** <https://devforum.zoom.us/t/when-creating-a-zoom-user-with-a-valid-token-in-an-organization-it-returns-an-error-no-privilege/91939>\
**Category:** API and Webhooks\
**Created:** [July 17, 2023, 6:40pm UTC](https://devforum.zoom.us/t/when-creating-a-zoom-user-with-a-valid-token-in-an-organization-it-returns-an-error-no-privilege/91939 "2023-07-17T18:40:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![angeloh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/angeloh/32/46637_2.png) [@angeloh](https://devforum.zoom.us/u/angeloh)\
**Post date:** [July 17, 2023, 6:40pm UTC](https://devforum.zoom.us/t/when-creating-a-zoom-user-with-a-valid-token-in-an-organization-it-returns-an-error-no-privilege/91939/1 "2023-07-17T18:40:51Z")

</div>

**API Endpoint(s) and/or Zoom API Event(s)**

curl --location ‘[https://api.zoom.us/v2/users](https://api.zoom.us/v2/users)’ \ –header ‘Content-Type: application/json’ \ –header ‘Authorization: Bearer REDACTED’ \ –data-raw ‘{ “action”: “create”, “user\_info”: { “email”: “[jeremy.lam@swifteam.com](mailto:jeremy.lam@swifteam.com)”, “first\_name”: “Jeremy”, “last\_name”: “Lam”, “display\_name”: “Jeremy Lam”, “type”: 1 } }’

**Description**  
_Details on your question, workflow or the problem you’re trying to solve._

When creating a Zoom user with a valid token in an organization, it returns an error No privilege

**Error?**  
_The full error message or issue you are running into, where applicable._

When creating a Zoom user with a valid token in an organization, it returns an error No privilege

---

<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:** [July 17, 2023, 9:24pm UTC](https://devforum.zoom.us/t/when-creating-a-zoom-user-with-a-valid-token-in-an-organization-it-returns-an-error-no-privilege/91939/2 "2023-07-17T21:24:15Z")

</div>

Hi @angeloh

Please never share tokens publicly. I recommend revoking the token, regenerating your account credentials and access token. The error you’re referencing sounds related to role management. Please review this article for more help on ensuring the user querying has all the privileges needed:

> **[Using role management](https://support.zoom.us/hc/en-us/articles/115001078646-Using-role-management)**
>
> Each user in a Zoom account automatically has a system role, which can be owner, administrator, or member. These roles are associated with a default set of permissions, which cannot be changed for ...

Thanks!

---

<div class="post-metadata">

**Author:** ![angeloh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/angeloh/32/46637_2.png) [@angeloh](https://devforum.zoom.us/u/angeloh)\
**Post date:** [July 17, 2023, 10:08pm UTC](https://devforum.zoom.us/t/when-creating-a-zoom-user-with-a-valid-token-in-an-organization-it-returns-an-error-no-privilege/91939/4 "2023-07-17T22:08:58Z")

</div>

Do you mean the account that did the Oauth needs to have admin permission on the role? The token I shared is from the Oauth token after the admin has authenticated through the Oauth.

---

<div class="post-metadata">

**Author:** ![habibraja2k23](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/habibraja2k23/32/50331_2.png) [@habibraja2k23](https://devforum.zoom.us/u/habibraja2k23)\
**Post date:** [July 18, 2023, 1:13pm UTC](https://devforum.zoom.us/t/when-creating-a-zoom-user-with-a-valid-token-in-an-organization-it-returns-an-error-no-privilege/91939/5 "2023-07-18T13:13:24Z")

</div>

To resolve the “No privilege” error when creating a Zoom user with a valid token[,](https://www.jobshabibi.com/) verify token permissions, check organization settings, validate user creation parameters, test with different credentials, and contact Zoom support if the issue persists.

---

<div class="post-metadata">

**Author:** ![angeloh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/angeloh/32/46637_2.png) [@angeloh](https://devforum.zoom.us/u/angeloh)\
**Post date:** [July 18, 2023, 5:34pm UTC](https://devforum.zoom.us/t/when-creating-a-zoom-user-with-a-valid-token-in-an-organization-it-returns-an-error-no-privilege/91939/6 "2023-07-18T17:34:25Z")

</div>

How do we verify token permission?

---

<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:** [July 25, 2023, 2:11pm UTC](https://devforum.zoom.us/t/when-creating-a-zoom-user-with-a-valid-token-in-an-organization-it-returns-an-error-no-privilege/91939/7 "2023-07-25T14:11:40Z")

</div>

@angeloh When you get a token, you should see the scopes in the response body which indicate token permissions (which endpoints the token can be used with:

OAuth: [Postman](https://www.postman.com/zoom-developer/workspace/zoom-public-workspace/request/22097587-97ba40f3-328f-43c3-995a-fc135d856ffc)

Server-to-Server OAuth: [Postman](https://www.postman.com/zoom-developer/workspace/zoom-public-workspace/request/22097587-875f65b4-d88f-4082-80af-7605303a5abc)

---

<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:** [July 28, 2024, 5:48am UTC](https://devforum.zoom.us/t/when-creating-a-zoom-user-with-a-valid-token-in-an-organization-it-returns-an-error-no-privilege/91939/8 "2024-07-28T05:48:33Z")

</div>

Closed on July 28, 2024, 5:48am UTC

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