You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using SAML2-SSO with activated autocreate, creates a new user always without tenant information.
That's because in iomadsaml2/classes/auth.php, line 748 the moodle core function is called, which is not aware of tenants:
$user->id = \user_create_user($user, true, true);
I suggest to replace this line with:
$companyid = iomad::get_my_companyid(context_system::instance(), false);
$user->companyid = $companyid;
$user->id = \company_user::create($user);
The text was updated successfully, but these errors were encountered:
Using SAML2-SSO with activated autocreate, creates a new user always without tenant information.
That's because in iomadsaml2/classes/auth.php, line 748 the moodle core function is called, which is not aware of tenants:
$user->id = \user_create_user($user, true, true);
I suggest to replace this line with:
$companyid = iomad::get_my_companyid(context_system::instance(), false);
$user->companyid = $companyid;
$user->id = \company_user::create($user);
The text was updated successfully, but these errors were encountered: