Expected behaviour
Use Azure objectId as identifier.
Actual behaviour
UPN is used as user identifier [1].
What are the steps to reproduce this issue?
Use Azure AD authentication.
Any logs, error output, etc?
Any other comments?
The UPN should reflect the primary mail as recommended by Microsoft [2]. The e-mail address might change over time due to a new name of the person, merger and acquisitions or similar actions.
Microsoft recommends to use the objectId as unique identifier.
[1]
|
return response.get('upn') |
[1]
https://docs.microsoft.com/en-us/azure/active-directory/hybrid/howto-troubleshoot-upn-changes
Expected behaviour
Use Azure objectId as identifier.
Actual behaviour
UPN is used as user identifier [1].
What are the steps to reproduce this issue?
Use Azure AD authentication.
Any logs, error output, etc?
Any other comments?
The UPN should reflect the primary mail as recommended by Microsoft [2]. The e-mail address might change over time due to a new name of the person, merger and acquisitions or similar actions.
Microsoft recommends to use the objectId as unique identifier.
[1]
social-core/social_core/backends/azuread.py
Line 81 in 98c81ad
[1] https://docs.microsoft.com/en-us/azure/active-directory/hybrid/howto-troubleshoot-upn-changes