Post Login Action, event.user.email is missing

Hi - under what circumstances will event.user.email be missing?

I’m my scenario, my auth0 instance is SP and it’s communicating with a Ping Federate IdP.

Thanks

The email attribute could be missing in several situations:

  1. SAML Attribute Mapping Issues
  • If the SAML attribute mapping between PingFederate (IdP) and Auth0 (SP) isn’t configured correctly
  • If PingFederate isn’t sending the email attribute in the SAML assertion
  • If the attribute name for email in Auth0 doesn’t match what PingFederate is sending
  1. IdP Configuration
  • If email isn’t included in the attribute contract in PingFederate
  • If the user doesn’t have an email configured in the identity source connected to PingFederate
  • If there are attribute release policies in PingFederate blocking the email attribute
  1. Auth0 Rules/Actions
  • If any Auth0 rules or actions are inadvertently removing or modifying the email attribute

To debug this, I’d recommend:

  1. Check the SAML attribute mapping in Auth0’s federation settings
  2. Review the SAML response from PingFederate using Auth0’s SAML tracer or browser tools
  3. Verify the attribute contract and mapping in PingFederate
  4. Check if any Auth0 rules/actions are modifying the user profile

Example of SAML Mapping in Auth0 Dashboard:

Here i mapped email to username which is coming from SAML connection. Similarly, you need to check what property you mapped in Ping Federate for email and accordingly map in SAML connection in Auth0.

Review the Auth0 documentation here for Ping Federate SAML Identity Provider

2 Likes

Hi @rsung,

The reply from @sumansaurav makes good points on addressing the event.user.email is missing issue you have been encountering.

I believe this may be happening because of the SAML attribute mappings. You can verify that the email address is coming through by checking your logs in the success login events.

If the email address is missing, then it indicates an issue with the SAML enterprise connection configuration.

Let us know if you continue having issues.

Cheers,
Rueben

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.