"Support_Microsoft_account_UPN_changes" does not convert Moodle usernames to lower case #2399
Labels
Feature - SSO
Issue type - bug
Bugs in existing code that needs to be fixed.
Plugin - auth_oidc
Plugin - local_o365
Status - PR ready / pending release
Dev is done and PR ready. Will be included in the next release.
Milestone
It seems the new Feature "Support_Microsoft_account_UPN_changes" (https://docs.moodle.org/401/en/Microsoft_365#Support_Microsoft_account_UPN_changes) does not correctly convert the retrieved UPN to lower case, when it should be used as Moodle username.
Example:
Precondition:
Support_Microsoft_account_UPN_changes enabled
User in Moodle: old.test1@example.com
Related user in Azure (UPN): New.Test1@example.com
Actual result after synch (when user tries to login):
Error: "The username must be in lower case".
Expected:
The plugin converts the UPN to lower case, when using it as username.
-> new.test1@example.com
Tested on Moodle 4.1.6
The text was updated successfully, but these errors were encountered: