microsoft / o365-moodle

Office 365 and Azure Active Directory plugins for Moodle
GNU General Public License v3.0
181 stars 136 forks source link

Sync Issues #1974

Open ghost opened 2 years ago

ghost commented 2 years ago

I'm finding that the sync settings option: "Match Azure usernames to moodle emails instead of moodle usernames during the sync" is not functioning correctly. The sync job is not successfully matching against the Moodle email address field (user doesn't exist in Moodle). The sync job log shows no attempt to match against email addresses, only usernames (even with the match username option unchecked).

Additionally, I'm finding that when using the matching tool, user matches are successfully found, but something in the process must not be completing properly. I had it set not to change authentication method to Open ID connect. When refreshing the course group enrollment, these matched users are not added to the appropriate Team as expected. This is true for manual matches as well. However, when changing the Moodle username to match the upn, and then running the user sync job, the user is matched and the log shows "adding office 365 object record for user". Strangely this occurred when only match by email was checked in the sync options and match by username was not checked. Afterwards, refreshing the course group list added the user to the appropriate course Team.

Thank you for your help!

gushagelberg2 commented 2 years ago

This seems to be similar to my issue https://github.com/microsoft/o365-moodle/issues/1987