# Error 200 when create a user

**URL:** <https://devforum.zoom.us/t/error-200-when-create-a-user/59018>\
**Category:** API and Webhooks\
**Created:** [October 18, 2021, 11:24am UTC](https://devforum.zoom.us/t/error-200-when-create-a-user/59018 "2021-10-18T11:24:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![haidar](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@haidar](https://devforum.zoom.us/u/haidar)\
**Post date:** [October 18, 2021, 11:24am UTC](https://devforum.zoom.us/t/error-200-when-create-a-user/59018/1 "2021-10-18T11:24:05Z")

</div>

**Description**  
I got the error code 200 no privilage on create user API

**Error**  
{{  
“code”: 200,  
“message”: “No privilege.”  
}}

\*\*Which App Type (JWT )  
Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

**Which Endpoint/s?**  
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

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

1. Request URL / Headers (without credentials) / Body
2. See error

**Screenshots (If applicable)**  
If applicable, add screenshots to help explain your problem.

**Additional context**  
Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [October 18, 2021, 9:23pm UTC](https://devforum.zoom.us/t/error-200-when-create-a-user/59018/2 "2021-10-18T21:23:16Z")

</div>

Hi @haidar

Thanks for reaching out to the Zoom Developer Forum!  
Could you please share with me the request body that you are sending when trying to create an user?  
Thanks,  
Elisa

---

<div class="post-metadata">

**Author:** ![haidar](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@haidar](https://devforum.zoom.us/u/haidar)\
**Post date:** [October 19, 2021, 6:23am UTC](https://devforum.zoom.us/t/error-200-when-create-a-user/59018/3 "2021-10-19T06:23:33Z")

</div>

Hi Elissa  
Today I was trying to make meetings using zoom API and eventually, I got success in it.  
Everything is working fine.  
But I have a concern regarding this.  
When I have to make an API call for creating a meeting, it requires API Key & Secret Key in order to generate jwt token.  
And that is good for security purposes.  
But as I am working on a Tele-Health project where there are Doctors as well as Hospitals. Hospitals will create a zoom meeting for Doctors in order to take a TeleCall.  
If I have 10 Doctors in my database and every hospital want to create a meeting, then I need to have API Keys & Secret Keys in order to create meeting through their (Doctors ) email ids.  
In this case, I will need to register every doctor on the zoom marketplace in order to achieve API Keys & Secret Keys. And this process would be done manually.  
This would be time taking process if I get API Key & Secret Key for every doctor and store them in my system so as to they can make API calls for creating meetings.  
So is there any way to get API Key & Secret Key for any email address through some kind of API call.

I have seen an API in your postman zoom API collection to create users.  
We are ready to buy Pro Plan for this

Hospitals to Doctors call and each of the Doctors should be joined as a Host  
please help

---

<div class="post-metadata">

**Author:** ![haidar](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@haidar](https://devforum.zoom.us/u/haidar)\
**Post date:** [October 19, 2021, 1:05pm UTC](https://devforum.zoom.us/t/error-200-when-create-a-user/59018/4 "2021-10-19T13:05:53Z")

</div>

@elisa.zoom  
Today I was trying to make meetings using zoom API and eventually, I got success in it.  
Everything is working fine.  
But I have a concern regarding this.  
When I have to make an API call for creating a meeting, it requires API Key & Secret Key in order to generate jwt token.  
And that is good for security purposes.  
But as I am working on a Tele-Health project where there are Doctors as well as Hospitals. Hospitals will create a zoom meeting for Doctors in order to take a TeleCall.  
If I have 10 Doctors in my database and every hospital want to create a meeting, then I need to have API Keys & Secret Keys in order to create meeting through their (Doctors ) email ids.  
In this case, I will need to register every doctor on the zoom marketplace in order to achieve API Keys & Secret Keys. And this process would be done manually.  
This would be time taking process if I get API Key & Secret Key for every doctor and store them in my system so as to they can make API calls for creating meetings.  
So is there any way to get API Key & Secret Key for any email address through some kind of API call.

I have seen an API in your postman zoom API collection to create users.  
We are ready to buy Pro Plan for this

Hospitals to Doctors call and each of the Doctors should be joined as a Host  
please help

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [October 20, 2021, 8:41pm UTC](https://devforum.zoom.us/t/error-200-when-create-a-user/59018/5 "2021-10-20T20:41:32Z")

</div>

Hi @haidar,

Im happy to hear that you were able to create meetings through our API.  
Are you using a JWT app in order to create those meetings?

If that is the case, with the one JWT App, you can [generate a JWT Token](https://marketplace.zoom.us/docs/guides/auth/jwt) and use it to make API requests for all users on your Zoom account (all the doctors in one hospital for example)

Once you have your JWT Token, you can pass in the [userId](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/users) or user email to [create meetings](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate) for anyone on the account.

So instead of generating a set of API key and secrets for each Doctor, you could do it for each Hospital (Main account) and then add all the doctors as users of the Main account.

Regarding to the endpoint to create users, yes you can use this endpoint to create users, but you can not generate API key and secrets through an API call

> **[Create users - Users - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usercreate)**
>
> Use this API to add a new user to your Zoom account. 
> 
> Scopes: user:write:admin, user:write Rate Limit Label: Light 
> 
> Note: The following rate limits ...

Hope this helps and let me know if you have any more questions  
Thanks  
Elisa

---

<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 20, 2021, 6:42am UTC](https://devforum.zoom.us/t/error-200-when-create-a-user/59018/6 "2021-11-20T06:42:19Z")

</div>

Closed on November 20, 2021, 6:42am UTC

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