o365-moodle icon indicating copy to clipboard operation
o365-moodle copied to clipboard

Field mappings and synchronization working only for few fields

Open nvallinoto opened this issue 9 months ago • 2 comments

Dear Moodle developers,

I have successfully installed auth_oidc and local_o365 plugins for authorization and synchronization of users from Azure AD to Moodle using these Moodle/plugins versions:

Moodle - version: 4.1 - 2022112800 OpenID Connect - auth_oidc - version: 4.1.4 - 2022112825 Microsoft 365 Integration - local_o365 - version: 4.1.5 - 2022112826

The authorization is working quite well excluding the "Resource Owner Password Credentials Grant" login flow. This login flow inhibits some users to login to Moodle. At the moment I solved this issue using the "Authorization Code Flow" login flow.

The main problem I've encountered is the following:

  • only some fields are updated in Moodle user profiles after the task "Sync users from Microsoft Entra ID" is executed or the user logs in Moodle.

Only these fields are mapped in Moodle: Given name, Surname, mail, UserPrincipalName.

Other fields are not mapped in Moodle such as:
SamAccountName, StreetAddress, OfficePhone, MobilePhone, extensionAttribute1..8, City, Company, Country, Department, DisplayName.

And other fields are not included in the combo, where you can choose the user data to be mapped from Open ID Connect Idp to Moodle, such as: Name, cn, sn.

The last unexpected behaviour is that all the users have been moved (synced) to Moodle (active and not active) but the disabled users in Azure AD (Enabled=false) are not suspended users in Moodle. They appear active in Moodle.

Maybe I missed or I made some mistakes in configuration's page of the Microsoft 365 plugins.

Maybe some of you already encountered these behaviours and can give me a suggestion to solve it.

Your help will be very appreciated.

nvallinoto avatar May 06 '24 13:05 nvallinoto