Default Country Code for Phone MFA Azure B2C Custom Policy / User flow

Elanchezhian 0 Reputation points
2023-03-11T17:18:36.17+00:00

Hi,

I am look for setting Default Country Code for Phone MFA Azure B2C Custom policy/ User Flow. don’t want to give option to the user to select / enter country code.. just add default as +1

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Shweta Mathur 30,296 Reputation points Microsoft Employee Moderator
    2023-03-14T08:18:00.99+00:00

    Hi @Elanchezhian ,

    Thanks for reaching out and apologies for the delay in response.

    If you are using user flow, you can update the country code drop down list with the country code 'US' only using localization Strings.

    You can select the user flow you want to update and select Language under customize:

    User's image

    Select Multifactor authentication page, and then select Download defaults (en).

    Open the JSON file that was downloaded in the previous step.

    In the file, search for countryList and replace value with below and upload the file.

    
    {
          "ElementType": "UxElement",
          "ElementId": null,
          "StringId": "countryList",
          "Override": true,
          "Value": "{\"DEFAULT\":\"Country/Region\",\"US\":\"United States\"}"
        },
    
    

    Now MFA page will show only US code.User's image

    If you want to remove, drop down box too then you need to customize the page using HTML and CSS.

    Hope this will help.

    Thanks,

    Shweta

    Please remember to "Accept Answer" if answer helped you.

    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.