Platform / Identity & Authentication
Cannot login via SAML JIT if platform encryption is enabled on the Contact Email field
Summary
Cannot login via SAML JIT if platform encryption is enabled on the Contact Email field
you will get "Invalid contact" error as "_nc_external/identity/saml/SamlError?ErrorCode=23&ErrorDescription=Invalid+contact"
This is because searches for contactEmail will not find results if the Contact Email field is encrypted.
The existing contact cannot be found, so it tries to create a new contact. This results in a mismatch with the existing user's settings. as a result you will get INVALID_CONTACT_ID error.
The root cause is that the existing contactid cannot be found in SAML JIT from contactEmail due to encryption
Just-in-Time SAML Assertion Fields for Experience Cloud
https://help.salesforce.com/s/articleView?id=sf.sso_jit_community_requirements.htm&type=5
Note:
This is because searches for contactEmail will not find results if the Contact Email field is encrypted.
The existing contact cannot be found, so it tries to create a new contact. This results in a mismatch with the existing user's settings. as a result you will get INVALID_CONTACT_ID error.
The root cause is that the existing contactid cannot be found in SAML JIT from contactEmail due to encryption
Workaround
We haven't loaded the full details for this issue yet. Check the official page.
History
First tracked here as Closed with 1 report
Nov 30, 2026