I am using Azure ad b2c custom policy for sign up and sign up using username and want to extract email or get an email which is used while sign up process?
After user successfully logged in using username and password I am not able to get an email. See below technical profile?
<TechnicalProfile Id="AAD-UserReadUsingObjectId">
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="extension_employeeId" />
<!--
Get user email who logged in using username
Reference link: https://github.com/Azure-Samples/active-directory-b2c-advanced-policies/issues/24
-->
<!-- <OutputClaim ClaimTypeReferenceId="email" /> -->
<OutputClaim ClaimTypeReferenceId="strongAuthenticationEmailAddress" />
<OutputClaim ClaimTypeReferenceId="extension_mfaByPhoneOrEmail" />
<!-- <OutputClaim ClaimTypeReferenceId="executed-SelfAsserted-Input" /> -->
<!-- Required claims -->
<OutputClaim ClaimTypeReferenceId="strongAuthenticationPhoneNumber" />
<!-- Optional claims -->
<!-- <OutputClaim ClaimTypeReferenceId="signInNames.emailAddress" /> -->
<OutputClaim ClaimTypeReferenceId="signInNames.emailAddress" PartnerClaimType="email" />
<OutputClaim ClaimTypeReferenceId="displayName" />
<OutputClaim ClaimTypeReferenceId="otherMails" />
<OutputClaim ClaimTypeReferenceId="givenName" />
<OutputClaim ClaimTypeReferenceId="surname" />
<OutputClaim ClaimTypeReferenceId="otherMails" PartnerClaimType="emails" />
</OutputClaims>
<!-- <OutputClaimsTransformations>
<OutputClaimsTransformation ReferenceId="CopyEmailToReadOnly" />
</OutputClaimsTransformations> -->
</TechnicalProfile>
<TechnicalProfile Id="AAD-Common">
<Metadata>
<Item Key="ClientId">{Settings:ExtensionClientId}</Item>
<Item Key="ApplicationObjectId">{Settings:ExtensionObjectId}</Item>
</Metadata>
</TechnicalProfile>