title: Update Display Name in Azure B2C custom policy
body: <p>We are trying to update the Display Name in a custom Azure B2C policy using a Claims Transformation, but we can't get it to work. The policy executes with no errors, but the display name does not get updated.</p>
  
  <p>We DO NOT want the user to input the display name.</p>
  
  <p>There's a similar question answered <a href="https://stackoverflow.com/questions/37668121/azure-b2c-default-display-name">here</a>, but the transformation offered in the solution does not pass validation when uploading it to Azure.</p>
  
  <p>Here's the updated transformation we are using:</p>
  
  <pre><code>  &lt;ClaimsTransformation Id="CreateDisplayNameFromFirstNameAndLastName" TransformationMethod="FormatStringMultipleClaims"&gt;
      &lt;InputClaims&gt;
        &lt;InputClaim ClaimTypeReferenceId="givenName" TransformationClaimType="inputClaim1" /&gt;
        &lt;InputClaim ClaimTypeReferenceId="surname" TransformationClaimType="inputClaim2" /&gt;
      &lt;/InputClaims&gt;
      &lt;InputParameters&gt;
        &lt;InputParameter Id="stringFormat" DataType="string" Value="{0} {1}" /&gt;
      &lt;/InputParameters&gt;
      &lt;OutputClaims&gt;
        &lt;OutputClaim ClaimTypeReferenceId="displayName" TransformationClaimType="outputClaim" /&gt;
      &lt;/OutputClaims&gt;
    &lt;/ClaimsTransformation&gt;
  </code></pre>
  
  <p>There is a sample that uses the above transformation <a href="https://github.com/Azure-Samples/active-directory-b2c-advanced-policies/blob/master/Documentation/Features%20part%206.md#specifying-the-claims-transformation" rel="noreferrer">here</a>. </p>