In a KB integrated with GAM in Genexus17 U6, when trying to create a user with an email that already exists, the following GAM validation appears:
Ya existe un usuario registrado con ese correo electrónico, seleccione otro. (GAM78)
Is there any way to configure that two users can be registered with the same email or remove this validation?
Users are registering with the following code:
&User.Name = &Name
&User.EMail = &EMail
&User.FirstName = &FirstName
&User.LastName = &LastName
&User.Password = &Password
&User.MustChangePassword = true
&User.Save()
If &User.Success()
Commit
...
Else
&Errors = &User.GetErrors()
Do 'DisplayMessages'
Endif
EndIf
I understand that this validation is internal to GAM and is executed in the &User.Save()
How are you?
Yes you can. If you go to the GAM configuration, in gamhome, you can change the user identifier configuration. You go to Settings > Repository Configuration , then you go to the Users tab , and there you select the user identifier.