Azure AD B2C User Account Recovery Code

Ashish Raj 96 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 Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 37,206 Reputation points Microsoft Employee Moderator
    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.