Login with the email address (alternate login ID) renames Moodle user #2389
Labels
Feature - SSO
Feature - user sync
Issue type - help wanted
General questions on how to use the plugins, e.g. configurations etc.
Plugin - auth_oidc
Plugin - local_o365
Status - PR ready / pending release
Dev is done and PR ready. Will be included in the next release.
Triaging status - triaged
A ticket has been created accordingly in the maintainers' ticket system.
Milestone
We have enabled the Microsoft Entra-ID feature to allow users to sign-in with an email address. (https://learn.microsoft.com/en-us/azure/active-directory/authentication/howto-authentication-use-email-signin#enable-user-sign-in-with-an-email-address)
If we enable the plugin feature "Support Microsoft account UPN change", Moodle users will be renamed when they log in with one of their email addresses, even though the UPN has not changed.
Example
UPN: 12345@domain.com
Alternate email address: firstname.lastname@domain.com
The Moodle user is created by the task "Sync users with Azure AD" (\local_o365\task\usersync) with the username 12345@domain.com and matched to his Microsoft 365 user (OpenID Connect). If the user logs in with firstname.lastname@domain.com, then the Moodle user will be renamed. Therefore, the plugin does not correctly detect the change of UPN.
The text was updated successfully, but these errors were encountered: