How to Recover User Account with MFA SMS Enabled

Problem Statement:

If a user forgets the email(s) they registered with, how can we use their mobile numbers to find their user id and email address?


  1. Save the phone number in the user.app_metadata during MFA enrollment. This article has the details.

  2. Make a request to the GET /api/v2/users endpoint with the below query to get the email and user details.

    q: app_metadata.phoneNumber: "+19999999999"