Est-il possible d'éditer la liste des pays dans Azure B2C dans Sign-in with phone ?

Ramzi Jelassi 0 Reputation points
2023-05-04T12:54:31.48+00:00

Bonjour,

Comment on peut gérer la liste des pays dans Azure B2C dans sign-in with phone ?

C'est à dire faire une sélection de quelques pays à afficher en premier dans la listbox.

Merci.

User's image

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,722 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shweta Mathur 29,006 Reputation points Microsoft Employee
    2023-05-08T12:41:01.2833333+00:00

    Hi @Ramzi Jelassi ,

    Thanks for reaching out.

    To update the country drop down list with selected countries you need to update the JSON page of Phone Sign in.

    To update the Phone Sign in page,

    1.Click Your User Flow

    2.Languages -> Click 'Enable Language Customization' in the menu if it's not enabled

    3.Select the language

    4.Click phone signin page in flyout menu and download the defaults json

    User's image

    5.Then add this

    "LocalizedCollections": [
        {
          "ElementType": "ClaimType",
          "ElementId": "countryCode",
          "TargetCollection": "Restriction",
          "Override": true,
          "Items": [
            {
              "Name": "India(+91)",
              "Value": "IN"
            }
          ]
        }
      ]
    
    

    and upload the json to reflect the changes.

    Hope this will help.

    Thanks,

    Shweta


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

    0 comments No comments