# 300 Validation Failed on Create User

**URL:** <https://devforum.zoom.us/t/300-validation-failed-on-create-user/1322>\
**Category:** API and Webhooks\
**Created:** [June 4, 2018, 9:53am UTC](https://devforum.zoom.us/t/300-validation-failed-on-create-user/1322 "2018-06-04T09:53:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Usama\_Zaky](https://avatars.discourse-cdn.com/v4/letter/u/bc79bd/32.png) [@Usama\_Zaky](https://devforum.zoom.us/u/Usama_Zaky)\
**Post date:** [June 4, 2018, 9:53am UTC](https://devforum.zoom.us/t/300-validation-failed-on-create-user/1322/1 "2018-06-04T09:53:20Z")

</div>

Hello,

I’m trying to create user using the below JSON Body:

{  
“action”: “string”,  
“user\_info”: {  
“email”: “[my.name@xxxxx.com](mailto:my.name@xxxxx.com)”,  
“type”: “1”,  
“first\_name”: “myfname”,  
“last\_name”: “mylname”,  
“password”: “mypassword”  
}  
}

but getting the below response:

{  
“code”: 300,  
“message”: “Validation Failed.”,  
“errors”: [  
{  
“field”: “action”,  
“message”: “Invalid field.”  
}  
]  
}

Please advise?

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [June 4, 2018, 4:59pm UTC](https://devforum.zoom.us/t/300-validation-failed-on-create-user/1322/2 "2018-06-04T16:59:38Z")

</div>

Hi Usama,&nbsp;

The **action** value needs to be replaced from " **string**" to either " **create**", " **autoCreate**", " **custCreate**", or " **ssoCreate**". See the API doc here -&nbsp;[https://zoom.github.io/api/#create-a-user](https://zoom.github.io/api/#create-a-user)

Let me know if it works.&nbsp;

Thanks

Michael&nbsp;

---

<div class="post-metadata">

**Author:** ![Usama\_Zaky](https://avatars.discourse-cdn.com/v4/letter/u/bc79bd/32.png) [@Usama\_Zaky](https://devforum.zoom.us/u/Usama_Zaky)\
**Post date:** [June 5, 2018, 7:46am UTC](https://devforum.zoom.us/t/300-validation-failed-on-create-user/1322/3 "2018-06-05T07:46:44Z")

</div>

Hi Michael,

Thank you&nbsp;for your reply and support.

It works for me so my request is as below:

{  
“action”: “create”,  
“user\_info”: {  
“email”: “[usama.zaky@tawasoltech.com](mailto:usama.zaky@tawasoltech.com)”,  
“type”: “1”,  
“first\_name”: “usama1”,  
“last\_name”: “zak2y”,  
“password”: “123456”  
}  
}

but now I’m getting another issue:  
{  
“code”: 200,  
“message”: **"No privilege**."  
}&nbsp;

Could you please assist on that.

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [June 5, 2018, 4:54pm UTC](https://devforum.zoom.us/t/300-validation-failed-on-create-user/1322/4 "2018-06-05T16:54:34Z")

</div>

Hi Usama,&nbsp;

Can you post the details of your request? I ran the same information within post man and I received a 201 created response. Here are the details below.&nbsp;

POST /v2/users HTTP/1.1  
Host: [api.zoom.us](http://api.zoom.us)  
Accept: application/json, application/xml  
Content-Type: application/json  
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJxeFdCd1haS1J0ZU9IblMybnd6RTdBIiwiaWF0IjoxNTI4MjE2ODUzLCJleHAiOjE1MjgyMzQ4NTN9.bfEGj2slIHy\_9rMZBXKaE3ZHPrmYW0KcQcpTPuIPEZY  
Cache-Control: no-cache  
Postman-Token: 7738b9d7-e628-4a03-9702-2b2912550b48

{  
“action”: “create”,  
“user\_info”: {  
“email”: “[usama.zaky@tawasoltech.com](mailto:usama.zaky@tawasoltech.com)”,  
“type”: “1”,  
“first\_name”: “usama1”,  
“last\_name”: “zak2y”,  
“password”: “123456”  
}  
}

&nbsp;

Response:

{  
“id”: “bn-DnXyYRDupU1x\_d4vxxx”,  
“first\_name”: “usama1”,  
“last\_name”: “zak2y”,  
“email”: “[usama.zaky@tawasoltech.com](mailto:usama.zaky@tawasoltech.com)”,  
“type”: 1  
}

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [June 6, 2018, 4:10am UTC](https://devforum.zoom.us/t/300-validation-failed-on-create-user/1322/5 "2018-06-06T04:10:21Z")

</div>

Hi Usama,

Can you email us at [developersupport@zoom.us](mailto:developersupport@zoom.us)? From there we can troubleshoot without sharing API key & Secret and other sensitive data.&nbsp;

Thanks

Michael

&nbsp;

---

<div class="post-metadata">

**Author:** ![Usama\_Zaky](https://avatars.discourse-cdn.com/v4/letter/u/bc79bd/32.png) [@Usama\_Zaky](https://devforum.zoom.us/u/Usama_Zaky)\
**Post date:** [June 6, 2018, 7:36am UTC](https://devforum.zoom.us/t/300-validation-failed-on-create-user/1322/6 "2018-06-06T07:36:20Z")

</div>

Hi Michael,

Thank you for your support.

I’ve raised my concern over the support email you’ve shared.&nbsp;

&nbsp;

Thanks,

Usama Zaky
