microsoft / o365-moodle

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

Integration not syncing some users #2600

Open spaudelkpu opened 1 month ago

spaudelkpu commented 1 month ago

Our Learning Management system, Moodle, is integrated with M365. The Teams sync process creates Class Teams for some of our courses with Teachers as owners and students as members.

Recently our Moodle logins were changed from user's UserPrincipalName (numerical IDs) to their shortname. Two accounts now exist for instructors: accounts with shortname as the primary ID and the old accounts with numerical IDs. After this change took place, the first new users with a shortname in the system did not correctly sync into their Teams course as an owner. I am unable to switch the integration to use the new accounts to sync owners. We have attempted to delete the old accounts to use the new ones to no avail.

spaudelkpu commented 1 month ago

Moodle version: 4.1 Microsoft plugins version: auth_oidc: 4.1.6 local_o365: 4.1.6

To clarify further, the 2 accounts exist after we switched our Moodle Logins to SAML (plugin: auth_saml2). We also had an issue of a user syncing into the wrong course after this change.