Error when updating the phone_number for user

I tired to update the user’s phone number. The API responded 400- Bad Request with message as ‘User with old phone_number does not exist in Auth0 database’. I created the user with connection as ‘sms’. I can confirm that the user profile exists.

Hi @deena.c,

Thanks for reaching out to the Auth0 Community!

I understand that you have encountered the "User with old phone_number does not exist in Auth0 Database" error message when trying to update an SMS connection user’s phone number.

In my initial tests, I was not able to reproduce this error. To investigate the issue further, would you be able to provide me with the exact code you use to call the API request to change the phone number?

And could you also clarify if this is happening to an isolated user or many users?

Thanks,
Rueben

Hi @rueben.tiow ,
Thanks for looking into the issue.
I can’t reproduce this error today. The user gets updated for the update request with the same payload.
However I cant find an API to validate the OTP sent to the user when I set the verify_phone_number field to true while updating the user’s phone number to a new mobile number.