Azure AD B2C User Account Recovery Code

Ashish Raj 91 Reputation points
2024-04-02T13:32:19.9566667+00:00

We have setup Azure AD B2C login for our application. Currently we have setup custom policies for Signin Signup using TOTP MFA which is working fine. We want to implement a recovery code functionality using which user can download recovery code during signup or later from their profile and can use for login in the event when they do not have access to the Authenticator device due to any reasons.

 

We went through Azure B2C docs but could not find any reference to achieve this. Is it possible to achieve this using Azure AD B2C or using any partner integration?

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,639 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,457 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 33,801 Reputation points Microsoft Employee
    2024-04-03T19:49:16.75+00:00

    Hi @Ashish Raj ,

    I have received confirmation that we do not have a feature like recovery code in B2C and we will not have it in the future. 

    If your end goal is to add more MFA flexibility to users, one suggestion is that you could add multiple MFA methods at the same time during user registration and the user can choose any one of these to pass MFA.

    For example, users can register multiple MFA methods during sign-up. And during sign-in, if they lost the Authenticator app they could still use either phone call/SMS code or email OTP or partner MFA to pass it.

    Here is an example code you could reference:

    https://github.com/azure-ad-b2c/samples/blob/master/policies/mfa-email-or-ph

    If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar questions.

    0 comments No comments