Open Rajmale opened 3 months ago
Hi @Rajmale,
Based on your description, it looks like there could be a few issues in the setup.
The first issue you need to resolve is user connections. For each Microsoft user, how many Microsoft accounts (with unique GUID) do they have? How many Moodle accounts do they have?
The Moodle and Microsoft user connection is maintained in the mdl_local_o365_objects table. To find existing user mappings, you can use this query:
SELECT * FROM mdl_local_o365_objects WHERE type = 'user';
Each record would connect a Microsoft account with the GUID in the "objectid" column with the Moodle user with ID in the "moodleid" column. You need to make sure that the user connection is clear - there is no duplicate Moodle accounts connecting to the same Moodle account, otherwise the sync will simply not work.
Once it is clearly, the course sync feature works in the way that if a Moodle user is enrolled to a course, if the user is connected to a Microsoft account, and the course is connected to a Team, then the user is added to the Team with appropriate owner/member role.
Please investigate along this route.
Regards, Lai
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.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.