Importing user profiles that do not have an email attribute

Problem statement

A lot of users of our app do not use email to log in and use a username instead. We want to import these users in Auth0 using a custom database with lazy migration, but Auth0 does not allow importing users with missing email IDs.

The solution we are thinking of is to assign them fake email IDs. Is there any accepted pattern Auth0 suggests to assign such fake email IDs which are not routable?

Solution

An email field is required when importing users either through a Custom DB or Bulk User Import.

The recommendation for these username users that do not have an email is to assign them a dummy email to be imported. A common pattern for this is to use progressive profiling after importing to eventually collect the user’s emails for the flows that require an actual email address to work (such as password resets): Understand How Progressive Profiling Works