Auth0 Payload Validation Error Occurs When Updating User Email Address
Last Updated:
Overview
Auth0 generates a payload validation error when updating a user email address because the email format violates standard rules. Ensure the email address conforms to standard formatting rules to resolve this issue, as Auth0 does not allow custom validation logic. When attempting an update with an invalid email address format, Auth0 generates the following error:
Payload validation error: 'Object didn't pass validation for format email: test@test-au-.com on property email (The user's email).
Applies To
- Auth0
- User Management
- Email Validation
Cause
Auth0 fails the validation if the email address violates standard formatting rules. Common formatting violations include domain names starting or ending with a hyphen, the local part of the email exceeding 64 characters, or the presence of preceding or trailing spaces.
Solution
What resolves the email validation error?
Auth0 does not currently support customizing the email validation logic. Ensure the email address format is valid before attempting the update by checking these common formatting requirements.
- Remove any preceding or trailing spaces from the email address.
- Ensure the local part of the email address (before the @ symbol) does not exceed 64 characters.
- Verify that the domain name does not start or end with a hyphen.
Submit a feature request for custom validation.
Submit a feature request to customize email validation logic by completing the Product Feedback form. More information about this process can be found at How to Submit Product Feedback or Feature Requests.