-
Notifications
You must be signed in to change notification settings - Fork 137
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
Office365 email change not updating Moodle username #1156
Comments
In our experience using this plugin, UPN changes are not properly handled, and result in corrupted Moodle accounts. What happens to us is that we end up with two accounts with the email field mapped to the new email address, the old account and a new one. The old account retains the old UPN as its username, the new one gets the new UPN. What makes the accounts corrupted is that both are mapped to the same Azure Object ID within Moodle, so only one can ever actually be logged in to! We also have Moodle configured to disallow the same email address on multiple accounts, but this plugins behaviour breaches that setting. The least-bad solution we have found is to manually fix the account by:
We also have a report running using the Ad Hock SQL reporting plugin to warn us of duplicated email addresses in the users table. |
The request here is to support upn changes in Azure AD, and update the username of the connected Moodle account accordingly. |
Subscribing to this, as this affecting us too. As I see this issue: |
@weilai-irl Any updates on this? |
@matthewblabey If you dare to test, check out my PR from my branch. |
Hi all, Please see my note at #2214 (comment). In short, the UPN change support will be added to the next release. Regards, |
Hi all, This issue should be fixed by the feature to support Microsoft user UPN changes, which is released today. Please check out the latest versions of the plugins and try out this feature. I'm going to close this issue now, but feel free to reopen if you have any questions. Regards, |
We would like to understand how a name change in Office365 is reflected into Moodle when using this plugin.
Scenario: User changes name (marriage, divorce etc.) so their email address/UPN is amended accordingly in Azure. User can successfully log in to Moodle and their details (email, first name, surname etc.) update according to settings defined in the mapping settings under "user sync". The only field that does not get updated (and cannot be controlled through the mapping settings) is the Moodle username (which is greyed out when the user's auth type is set to "OpenID Connect").
The fact the user can successfully log in to Moodle using their new email address and it successfully connects to the correct Moodle profile suggests that the username field has some important meaning to the very first time the Moodle profile is created for that user and that the username field should never change or it will break the Moodle profile relationship and cause login errors.
We would like some information (even an ability to begin a paid support call if it is available) to understand the process because we have some issues and questions:
Should the Moodle username field update from Azure when a user's email address/UPN is changed?
If paid support from Microsoft is available, how can we raise this as we are unsure how this branch of Microsoft offering differs from typical support of flagship products and technologies?
The text was updated successfully, but these errors were encountered: