Email address not syncing on login for Azure AD Enterprise connection

Hi There,
I have configured Azure AD Enterprise connection for SSO and added users into Azure AD. I am able to setup SSO successfully but the issue I am facing is with user Email address sync.

User is getting successfully added in Auth0 on first login but it is not syncing user email address. I don’t see any value for email address upon checking the Row JSON of Azure AD user.

My Azure AD domain is - janalighthousetimp.onmicrosoft.com

Following is the configuration of Azure AD connection:

I am looking for some help on how to configure Azure AD Enterprise connection so that email address sync successfully.

Any help on this topic will be greatly appreciated. Thank you in advance

Hello!

Please check in Azure Portal if the user has an Email property.

If yes, please go to Azure AD > App registrations > select an Application > Token configuration and enable Email claim for the ID token. More on configuring optional claims in Azure here.

Alternatively, you can create a Rule to map the UPN as EMAIL:

function (user, context, callback) {
  user.email = user.email || user.upn;
  callback(null, user, context);
}
2 Likes

Thank you Art for your response.

After setting up Email property in Azure AD it is synching on login.

Thank you once again.

1 Like

Perfect, glad to hear that!