Share via

Azure AD B2C issue

Advait Kulkarni 6 Reputation points
2021-05-18T01:32:55.147+00:00

As part of this MFA flow end user phone number is not getting updated in Azure AD B2C. For existing users, the phone number format is not correct and hence CALL ME or SEND CODE below buttons are inactive

Note: if I manually enter phone numbers in Azure AD B2C authentication contact info directly then these two buttons are working fine as expected.

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments

2 answers

Sort by: Most helpful
  1. Kunal Gautam 0 Reputation points
    2023-05-08T13:03:03.8833333+00:00

    How can we set default option in MFA (Email/Phone) per user wise via custom policy?

    Was this answer helpful?

    0 comments No comments

  2. singhh-msft 2,436 Reputation points
    2021-05-18T08:12:26.423+00:00

    @Advait Kulkarni , thank you for reaching out to us. I see that you want to update the incorrectly saved phone numbers of Azure AD B2C users. Currently, there are three ways in which you can achieve this goal:

    • Set the authentication data with PowerShell version 1: Connect-MsolService Set-MsolUser -UserPrincipalName user@keyman .com -AlternateEmailAddresses @("email@keyman .com")
      Set-MsolUser -UserPrincipalName user@keyman .com -MobilePhone "+1 4251234567"
      Set-MsolUser -UserPrincipalName user@keyman .com -PhoneNumber "+1 4252345678" Set-MsolUser -UserPrincipalName user@keyman .com -AlternateEmailAddresses @("email@keyman .com") -MobilePhone "+1 4251234567" -PhoneNumber "+1 4252345678" OR Set the authentication data with PowerShell version 2: Connect-AzureAD Set-AzureADUser -ObjectId @domain.com -OtherMails @("@domain.com")
      Set-AzureADUser -ObjectId ******@domain.com -Mobile "+1 4251234567"
      Set-AzureADUser -ObjectId ******@domain.com -TelephoneNumber "+1 4252345678" Set-AzureADUser -ObjectId @domain.com -OtherMails @("@domain.com") -Mobile "+1 4251234567" -TelephoneNumber "+1 4252345678"
    • You can Update phoneAuthenticationMethod using Graph API (Beta).
    • You can setup Azure AD B2C custom policy that allows a user to edit their phone number: Check out this Stack Overflow's thread for more information (Though, I have not tested this approach yet).

    Please "**[Accept the answer][5]**" if the information helped you. This will help us and others in the community as well.  
    

    Was this answer helpful?


Your answer

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