Hi @Tiago C
Thank you for posting this in Microsoft Q&A.
I understand you're encountering an error related to the "userIdentity" claim type while trying to replicate the auto-account linking policy from the Azure AD B2C samples. The error states that the claim is not found, even though it is declared in your AccountLinkExtensions.xml
.
To resolve this issue can you please check below possible solutions:
1.Double-check that the userIdentity
claim type is correctly declared in your AccountLinkExtensions.xml
2.Ensure that the claims transformation referenced by AppendUser Identity
is correctly configured to use the userIdentity
claim. Check that the transformation method aligns with the expected input and output claims.
3.Make sure that your B2C_1A_AccountLink_Extensions
policy is correctly referencing the AccountLinkExtensions.xml
4.If you're only testing with Google, try logging in with other identity providers to see if the issue persists.
Hope this helps. Do let us know if you any further queries.
Thanks,
Navya.