microsoft / o365-moodle

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

Issues with Field Mapping and the Scheduled tasks related to the plugin #2242

Open dsnair-isfsdc opened 1 year ago

dsnair-isfsdc commented 1 year ago

Hi,

We are testing out the Moodle OIDC integration with Azure AD as the IDP.

We are using Moodle version 4.0.4 and the corresponding available plugin version '4.0.2 (2022041910)' for both the plugins 'auth_oidc' and 'local_o365'.

We have verified the configuration using 'Verify Setup' image

There are 2 issues for which we require help from the community.

  1. In the Scheduled tasks section, for the task - 'Sync users with Azure AD' the 'Run now' option doesn't appear image

The 'Run now' option is currently not being shown up for any of the o365 tasks.

  1. We wanted to get the value of 'Roles' from the Azure AD token and for this, we have created a user profile field 'Roles' and done the mapping as follows : image

However, this field is not getting populated on User re login. image

The value is available in the Azure AD ID token as follows - image

We would really appreciate if we could get any help to resolve the above issues and get the proper functioning of the User Synchronization with Azure AD.

Thanking you,

Best Regards, Devi

AntonT76 commented 1 year ago

Hi @dsn2019 ,

Unfortunately, I can only give you an answer to 1) - the "run now" option will be fixed in Moodle 4.0.5, but there is a workaround (https://github.com/microsoft/o365-moodle/issues/2149)

br, Anton

dsnair-isfsdc commented 1 year ago

Hi @AntonT76 ,

Thank you very much for helping me out resolve the issue related to Scheduled tasks. I applied the patch as suggested in the workaround (https://github.com/microsoft/o365-moodle/issues/2149) and the 'Run now' option is available now.

Thank you @weilai-irl for this patch.

Hope to get some pointers from the community to resolve the field mapping related issue.

Thanks & Best Regards, Devi