3

I've been playing around with AD B2C custom policies using the Starter Pack and I'm trying to work out how to NOT collect the Display Name on the sign up page, but record it by concatenating the captured GivenName and Surname.

I've worked out how to do the concatenation (via ClaimsTransformations), but I can't work out how hide the Display Name field on the sign up page so it's not collected. The only examples I've been able to find are disabling email verification and collecting additional data ... not collecting less data and hiding the fields in the UI.

Dazfl
  • 627
  • 8
  • 23
  • Hi @Dazfl, I am not writing an answer, Can you share how to disable the email verification? – Roshan Maddumage Sep 24 '20 at 15:07
  • Hi @RoshanMaddumage ... the documentation can explain how to do it better than I can (https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-policy-disable-email-verification) – Dazfl Sep 25 '20 at 05:34
  • REF: claim transformation used to build display name - https://learn.microsoft.com/en-us/azure/active-directory-b2c/string-transformations#formatstringmultipleclaims – felickz Sep 25 '20 at 14:20
  • how to do the concatenation (via ClaimsTransformations) - see https://stackoverflow.com/questions/50723095/update-display-name-in-azure-b2c-custom-policy – Michael Freidgeim Jun 23 '23 at 10:02

1 Answers1

3

Remove the <OutputClaim ClaimTypeReferenceId="displayName" /> in the LocalAccountSignUpWithLogonEmail technical profile.

Sandesh Segu
  • 83
  • 1
  • 6
Jas Suri - MSFT
  • 10,605
  • 2
  • 10
  • 20
  • 1
    Perfect! That worked! Is there any documentation that explains this? I can't find any in the microsoft docs ... but I could be having a man's look (as my wife would say). :-) – Dazfl Sep 11 '20 at 09:19
  • 2
    There isn’t, it’s more based on the concept that to add a field, you add an output claim, therefore the reverse is implied. https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-policy-configure-user-input – Jas Suri - MSFT Sep 11 '20 at 10:28
  • Is this in the SignUp policy? this on it's own doesn't work for me – Iria May 24 '22 at 22:29
  • I've removed every instance of from my code and it still shows up – eoleary Nov 03 '22 at 18:59