microsoft / o365-moodle

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

User Matching in Microsoft Office 365 Integration the Match Queue status is queued not changing #2049

Open hugostackoverflow opened 2 years ago

hugostackoverflow commented 2 years ago

Hello team, I have added a csv file in user matching office 365 integration plugin settings successfully, but the status for match queue remain queued even after forcing the Cron job. We have activated the user sync as well.

Any idea why this isn't working?

Regards

Hugo

weilai-irl commented 2 years ago

Hi @hugostackoverflow,

The matching queue is processed by the scheduled task "Process Match Queue" (\local_o365\task\processmatchqueue). Could you check if the task has been running please.

Regards, Lai

hugoroupar commented 2 years ago

Hello @weilai-irl , thank you for your help!

Yes the task has been running, but hasn't been doing anything. The status is queued since 1 week.

logs2 logs1

Regards,

Hugo

weilai-irl commented 2 years ago

Hi @hugoroupar,

Could you specify your Moodle version and local_o365 plugin version please.

Basically the only thing that the task does is to process the queue, so it's quite strange that it doesn't process it. Could you also show a sample of task output?

Regards, Lai

hugoroupar commented 2 years ago

Moodle version: 3.11.2+

local_o365 version: 2021051723

hugoroupar commented 2 years ago

Hello @weilai-irl the versions are

Moodle version: 3.11.2+ local_o365 version: 2021051723

the LDAP plugin provisioned the initial student account (i.e 123456) upon the first login. We added the local_o365 plugin to test. Tried to login and Moodle created another user (i.e 123456@test.com).

We are looking into matching the accounts and moving away from the LDAP authentication to O365.

Currently, it's still not matched, should we manually change the authentication in the original account?

Regards,

Hugo

weilai-irl commented 2 years ago

Hi @hugoroupar,

Could you confirm if your Microsoft 365 integration is fully configured, and Moodle is connected to Microsoft 365, therefore can make Graph API call please. This can be done by going to the "Microsoft 365 Integration" page in your site administration section, in the "Setup" tab, you should see a "Verify setup" section; clicking the "Update" button in that section should do the checks for you. Please make sure that all checks are passed.

Regards, Lai