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

Problem statement

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 some kind of regular expression)?

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