# Validation rules for email format when creating new user

**URL:** <https://devforum.zoom.us/t/validation-rules-for-email-format-when-creating-new-user/8165>\
**Category:** API and Webhooks\
**Created:** [February 20, 2020, 10:46pm UTC](https://devforum.zoom.us/t/validation-rules-for-email-format-when-creating-new-user/8165 "2020-02-20T22:46:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thai\_Nguyen](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@Thai\_Nguyen](https://devforum.zoom.us/u/Thai_Nguyen)\
**Post date:** [February 20, 2020, 10:46pm UTC](https://devforum.zoom.us/t/validation-rules-for-email-format-when-creating-new-user/8165/1 "2020-02-20T22:46:53Z")

</div>

**Description**  
Details validation rules for email format when creating new user through the API

**Error**  
Invalid fields for “user\_info.email”

```
{
  "code": 300,
  "errors": [
    {
      "field": "user_info.email",
      "message": "Invalid field."
    }
  ],
  "message": "Validation Failed."
}

```

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT

**Which Endpoint/s?**  
POST /users

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

1. Create new user with the information below:

2. See error

**Additional context**  
Previously, I can create user with a not-well-formed email address using the API. However, recently, this does not work anymore as I am getting the validation error like above. The documentation only mentions that email field cannot be exceed 128 characters and nothing else, so that email above should work no mater what if the email is not followed the format specs from RFC. The reason that I choose that kind of email format is just to create unique users and these users do not need to know the account in order to creating events in Zoom as they would have to go through my application. So I would like to know what kinds of rule that are being validated when creating new users and those rule needed to be documented so the API developers can devise correct solutions when running into issue like this.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [February 21, 2020, 5:48am UTC](https://devforum.zoom.us/t/validation-rules-for-email-format-when-creating-new-user/8165/2 "2020-02-21T05:48:21Z")

</div>

Hey @Thai_Nguyen,

We are strict on the validation of emails.

Have you tried creating users via the +string@ trick? This tactic will work with our validation.

See #1 here:

> **[3 awesome Gmail address tricks to get more out of your email ID](https://www.thewindowsclub.com/gmail-address-tricks)**
>
> Looking to get more out of your existing Gmail account? These 3 Gmail address tricks, tips, secrets will help you get the best out of your Gmail ID account.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![Thai\_Nguyen](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@Thai\_Nguyen](https://devforum.zoom.us/u/Thai_Nguyen)\
**Post date:** [February 21, 2020, 5:56pm UTC](https://devforum.zoom.us/t/validation-rules-for-email-format-when-creating-new-user/8165/3 "2020-02-21T17:56:25Z")

</div>

Thanks for the quick answer. It appeared to be working for me. Previously I was looking at that but at that time, Zoom was not letting me to use that kinds of format for email so that was the reason I had to derived a different format.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [February 21, 2020, 6:00pm UTC](https://devforum.zoom.us/t/validation-rules-for-email-format-when-creating-new-user/8165/4 "2020-02-21T18:00:33Z")

</div>

Happy to help @Thai_Nguyen! 🙂

If it was working prior, we may have made the email validation more strict. Yeah I would go with the + trick from now on.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:27pm UTC](https://devforum.zoom.us/t/validation-rules-for-email-format-when-creating-new-user/8165/5 "2020-08-21T19:27:42Z")

</div>

Closed on August 21, 2020, 7:27pm UTC


