Valid Characters of User Profile's "given_name" and "family_name"

Last Updated: Dec 17, 2024

Overview

When working on a user interface (UI) for user registration, to ensure the validation of UI and Auth0 create-user endpoint is consistent, the following question arises:

  • Do Auth0’s validation restrictions apply to the user profile’s “given_name” and “family_name” (e.g., the allowed characters of these attributes or a regular expression)?

Applies To

  • Validation Restrictions
  • Characters for user profile’s “given_name” and “family_name”

Solution

There is no particular character restriction on the given_name and family_name fields. Any valid Javascript string would be accepted.

Both of the fields have a 150-character maximum length limit. Any text exceeding this limit will return an error when the user is updated or created with the management API.

Related References

1 Like