Is it possible to migrate users phone numbers from our custom DB to Auth0?

Hi,
How can we pass phone numbers from our DB to Auth0, some users have more than 1 number…
For MFA we will use Twilio.

Please advise how to approach this.

Thank you!

Hi @alexey3,

Welcome to the Auth0 Community!

I understand that you are looking for guidance on migrating your users’ MFA phone numbers from your custom DB into Auth0.

To do so, there are a couple of options for User Import:

  1. Use Management API to Bulk User Import to the /jobs/users-imports endpoint:
    – Follow this JSON schema:
    – In the user.mfa_factors set the users phone number in the phone.value property.

  2. Alternatively, you could use the User Import/Export Extension:
    – Follow the same JSON schema:
    – In the user.mfa_factors set the users phone number in the phone.value property.

For now, you may also find this example useful: https://auth0.com/docs/users/import-and-export-users/bulk-user-import-database-schema-and-examples#mfa-factors-examples

Hoped this helps! Please let me know if you have any questions. I’d be happy to help.

Thank you

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.