Create SSO Connection users with email not upn

Hi,

We have set up an SSO connection to one of our clients Azure AD.
We have encountered the issue that on login, the users in Auth0 are created with the userPrincipalName as their email address.

So for example, for the user profile below, the user in Auth0 is created as “abcdef@other.biz”, not “john.doe@organization.com”.

{​​​​​​​​
@odata.context”: “https://graph.microsoft.com/v1.0/$metadata#users/$entity”,
“businessPhones”: [
“+11 11 111 1111”
],
“displayName”: “Doe, John”,
“givenName”: “John”,
“jobTitle”: “IT Generic”,
“mail”: “john.doe@organization.com”,
“mobilePhone”: null,
“officeLocation”: null,
“preferredLanguage”: null,
“surname”: “Doe”,
“userPrincipalName”: “abcdef@other.biz”,
“id”: “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”
}​​​​​​​​

Any idea would be very appreciated, thanks

1 Like

Any luck with this? I’m having trouble having email mapped at all, but similarly the attribute is ‘mail’ vs ‘email’.