Hello,
On our site users are log in via oAuth using Microsoft. When we update user profile data in Azure they will not be updated on our Moodle site.
I debugged the login procedure and found out that the profile fields are successfully retrieved in the "complete_login"-function. The variable $userinfo contains everything correctly. Nevertheless nothing gets updated.
I saw in the code that based on the data from $userinfo a mapped user is retrieved. If the script finds a user it seems to overwrite $userinfo.
} else if ($mappeduser && $mappeduser->confirmed) {
$userinfo = (array) $mappeduser;
$userwasmapped = true;
}
Does anybody has a solution for this?
Kind regards