Update MFA phone numbers

Problem statement

It has recently come to our attention that some of our users have been entering phone numbers that are incorrect when enrolling in MFA. We would like to go through our users and update numbers.

What is the best way to update the user data in this situation?

Solution

You can use the Management API’s Updates all authentication methods by replacing them with the given ones endpoint, which will allow you to update the phone number for the MFA factor.
You need the user ID and the following body:

[
  {
    "type": "phone",
    "preferred_authentication_method": "sms",
    "phone_number": "+XXXXXXXXXX"
  }
]