How to add more than two user inputs in a b2c login screen usign custom policies?

Andrés Halliday Martínez 20 Reputation points
2025-01-20T22:00:57.59+00:00

I've added many user inputs to other steps and it worked fine, but I haven't been able to do the same with the login. I've tried setting three output claims

<OutputClaims>
            <OutputClaim ClaimTypeReferenceId="newInput" Required="true" />
            <OutputClaim ClaimTypeReferenceId="newInput2" Required="true" />
            <OutputClaim ClaimTypeReferenceId="password" Required="true" />
            <OutputClaim ClaimTypeReferenceId="objectId" />
            <OutputClaim ClaimTypeReferenceId="authenticationSource" />
          </OutputClaims>

also setting the display claims too

<DisplayClaims>
            <DisplayClaim ClaimTypeReferenceId="newInput" Required="true" />
            <DisplayClaim ClaimTypeReferenceId="password" Required="true" />
            <DisplayClaim ClaimTypeReferenceId="newInput2" Required="true" />
          </DisplayClaims>

but it always shows only two inputs, sometimes kind of mixing them, like the newInput label with the ******* mask. Like this

User's image

User's image

These are the claim types:


<ClaimType Id="newInput">
        <DisplayName>newInput</DisplayName>
        <DataType>string</DataType>
        <UserHelpText>newInput</UserHelpText>
        <UserInputType>TextBox</UserInputType>
      </ClaimType>
      <ClaimType Id="newInput2">
        <DisplayName>newInput2</DisplayName>
        <DataType>string</DataType>
        <UserHelpText>newInput2</UserHelpText>
        <UserInputType>TextBox</UserInputType>
      </ClaimType>
 <ClaimType Id="password">
        <DisplayName>Password</DisplayName>
        <DataType>string</DataType>
        <UserHelpText>Enter password</UserHelpText>
        <UserInputType>Password</UserInputType>
      </ClaimType>

What should I do?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,149 questions
{count} votes

Accepted answer
  1. Sanoop M 675 Reputation points Microsoft Vendor
    2025-01-22T21:12:36.9966667+00:00

    Hello @Andrés Halliday Martínez,

    Thank you for posting your query on Microsoft Q&A.

    Based on your issue description, I understand that you have added many user inputs to other steps and it worked fine, but you haven't been able to do the same with the login. You tried setting three output claims and three display claims but it always shows only two inputs, sometimes kind of mixing them.

    Please note that the maximum requests consumed for Self-asserted technical profile and Display Control is 2. I am attaching the Screenshot below for your reference.

    User's image

    Please refer to the below document for your reference.

    https://learn.microsoft.com/en-us/azure/active-directory-b2c/service-limits?pivots=b2c-custom-policy#calculate-the-token-issuance-rate-of-your-custom-policy

    UserInputType:

    Azure AD B2C supports a variety of user input types, such as a textbox, password, and dropdown list that can be used when manually entering claim data for the claim type. You must specify the UserInputType when you collect information from the user by using a self-asserted technical profile and display controls.

    Please note that the claims what you have configured for TextBox UserInputType and Password UserInputType is correct as per the below document.

    https://learn.microsoft.com/en-us/azure/active-directory-b2c/claimsschema#userinputtype

    But unfortunately, it will show only two User Inputs at the same time in the Azure AD B2C login screen.

    I hope this above information provided is helpful. Please feel free to reach out if you have any further questions.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Thanks and Regards,

    Sanoop Mohan


1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.