-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Your Microsoft account UPN has changed #2526
Comments
Hi, we are now one step closer to a solution. We have discovered that there are differences in two tables for users with login problems: in the table "users", the column "username" does not contain the same value as the table "local_o365_objects", column "o365name". Example:
This was probably caused by manually changing the user IDs in Moodle. What we have done now? We have just overwritten the value in column "o365name" with the value from "username" for users with login problems. Initial feedback from users with login-problems has been positive, but we will wait and see. This issue is also described in #2331. What we need to think about is how we will deal with user changes in the future. We will therefore try to test this new function in the o365-plugin (support_upn_change). br, Anton |
Hi, we have tried the new function in Moodle (support_upn_change: https://docs.moodle.org/402/en/Microsoft_365#Support_Microsoft_account_UPN_changes) and we have some questions:
thanks, br |
Hi @AntonT76 The support_upn_change feature is not a function that can be called, but a setting to check when (1) performing user sync task, and (2) process user login. The general idea is like this:
So the idea is, if this feature is enabled and the Microsoft UPN is changed, providing there's no potential conflict (e.g. the new username of Microsoft account is already taken by another Moodle user), then either the user sync task or the next user login will automatically update the Moodle account, and allow the user to login smoothly, without any other action by any party. Note there is a known issue with manually mapped users, whose details shouldn't be updated. A fix to it will be included in the next release, which will hopefully happen next week. Hope this clarifies things a bit. Regards, |
Dear @weilai-irl thank you for this detailed information. Now the process is clear. But just a question to the process of renaming the user. We currently have two procedures to change the username: Procedure A: user exists in Moodle according to daily user sync AND user has logged-in already in Moodle
Procedure B: User exists in Moodle according to daily user sync, BUT has NOT yet logged-in in Moodle
According to your description and the new option "support_upn_change", procedure A is now:
And procedure B should be the same? Or are these the problems with "manually mapped users" which you mentioned? thanks, br Anton |
Hi,
we did an update from Moodle 4.1.4+ to 4.1.6+, the Microsoft local_o365-Plugin is 4.1.3 (2022112815). Now we have an user which is not able to login. The error message is:
"Your Microsoft account UPN has changed. Please contact your administrator to update your Moodle account."
Some additional infos:
Are there solutions for what we can do?
thanks, br Anton
The text was updated successfully, but these errors were encountered: