Bug 32380

Summary: There should be a staff side equivalent to PatronSelfRegistrationEmailMustBeUnique
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: gmcharlt, jbalway, kyle, m.de.rooy
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Lucas Gass (lukeg) 2022-11-30 15:50:28 UTC
We have the ability to enforce unique email address from self reg. We should have a staff side equivalent.  

When using SSO it can be problematic to have the same email address on different accounts.
Comment 1 Marcel de Rooy 2022-12-12 13:58:18 UTC
For long time many wished to have a unique email in Koha that could serve as userid too. This self registration pref is just a kind of partial implementation of that.
The response has always been: But we need to have duplicates for parent and child accounts.
We ended up with the current code ;) I am trying to get this moving again on bug 32426 now. No trivial operation sofar.
Comment 2 Joseph Alway 2025-11-05 15:23:26 UTC
This is a rather separate issue than the similar bug #32426, and bug #29480.

I was pointed to this ticket from ByWater Solutions Support upon finding out the hard way that SSO does not function when there are multiple instances of the same e-mail address.

I had been testing some things and entered my user's e-mail address into the primary e-mail address field of a test user. This was all fine, until I needed to re-authenticate (the next day). Upon which it sent me into an authentication loop. Removing my e-mail address from the primary e-mail address field of the test user fixed the problem.

It would be great, if the Primary E-mail address was a unique field.