Store "mobilePhone" in contact info during registration - Azure AD B2C Custom policy + MFA

Roshan Tolwani 31 Reputation points
2022-03-17T15:39:16.877+00:00

How to store mobile Phone Number during SignUp/Registration with MFA in Azure AD B2C Custom Policies.
What is the claim name that we can use to refer to mobile Phone

Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,472 questions
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Roshan Tolwani 31 Reputation points
    2022-04-06T12:01:55.8+00:00

    I was writing above line it at the wrong place inside the XML.
    Finally , the below line worked

    <TechnicalProfile Id="AAD-UserWritePhoneNumberUsingObjectId">
    <PersistedClaims>
    <PersistedClaim ClaimTypeReferenceId="Verified.strongAuthenticationPhoneNumber" PartnerClaimType="mobile" />
    </PersistedClaims>
    </TechnicalProfile>

    1 person found this answer helpful.
    0 comments No comments

  2. James Hamil 27,221 Reputation points Microsoft Employee Moderator
    2022-03-17T21:45:35.76+00:00

    Hi @Roshan Tolwani , you can access and store a mobile phone by using the "mobile" attribute here.

    To actually implement this you would need to follow the steps in this document. For example, the linked code adds a "city" claim, you would need to replace "city" with "mobile"

    <!--   
    <BuildingBlocks>  
      <ClaimsSchema> -->  
        <ClaimType Id="mobile">  
          <DisplayName>Mobile Phone</DisplayName>  
          <DataType>string</DataType>  
          <UserInputType>TextBox</UserInputType>  
        </ClaimType>  
      <!--   
      </ClaimsSchema>  
    </BuildingBlocks>-->  
    

    I hope this helps! Please let me know if you have any questions. If this answer helped you please mark it as "Verified" so other users can reference it.

    Thank you,
    James


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.