Hi all,
we've set up a Moodle site using Keycloak as an OAuth 2 service provider. Users have been imported into Keycloak, and account creation in Moodle is activated (authpreventaccountcreation: off).
During account creation, Moodle uses the "firstname", "lastname", and "email" fields provided by Keycloak to create the new account. However, when a user later edits their details in Keycloak, this is never reflected in Moodle. If I change my first name to "Joe" in Keycloak, it's still "Oliver" in Moodle.
We'd like Moodle to sync profile data with Keycloak at least on every login. Is there a way to achieve this or do we have to activate authpreventaccountcreation for updated Keycloak profile data to be displayed in Moodle?
Thank you
Oliver