Make Username Password User also a SMS user

Hi,

I am looking into supporting a passwordless application under the current auth0 account with all our existing users. I am trying to update a user and set their phone number so he/she can then utilize their phone for passwordless. Unfortunately i am getting the error

{
“statusCode”: 400,
“error”: “Bad Request”,
“message”: “Cannot update phone_number for non-sms user”,
“errorCode”: “operation_not_supported”
}

What’s the best way to approach this?

Thanks!

An existing user associated with a specific connection cannot be changed to be associated with another connection. One option you have is to allow the user to authenticate with the sms connection, then perform account linking of the two accounts - this will allow the linked user to authenticate using either of the methods for subsequent login attempts.

1 Like

Hi @prashantT! Thank you for your response. Do you have to have public sign up enabled to do this?

@Matthew_Hartz as linking is performed via the Management API, this should work with public signup disabled. Let me know if you run into issues.

1 Like

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