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

61121336 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

Azure Active Directory External Identities
{count} votes

1 answer

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

    Hi @61121336 ,

    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