Facility > Users - Creating duplicate users by restoring deleted users
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Observed behavior
Reporting this as a separate issue as I think I had previously mentioned it somewhere as a comment but now I can't find it: If I remove a user so that the user becomes soft deleted and is kept only in the "Removed users" table and if I go ahead and create a brand new user with the same username, then I am able to restore the first user so that I will have 2 users with the same duplicate username.
Expected behavior
To be further specified.
Steps to reproduce the issue
- Install the build from https://github.com/learningequality/kolibri/releases/tag/v0.19.0-beta0
- Create one user and then soft delete that user
- Create a new user with the same username
- Restore the previously deleted user
Usage Details
Kolibri 0.19.0b0 Windows 11, Ubuntu 22, Mac OS 15.5 - Chrome, Firefox
@radinamatic
@rtibbles I recall we talked about this and my memory is that we didn't want to go the way of making username unique or anything big like that. I think we discussed that this is a situation where we provide the tools to the user needed to fix the problem (ie, update the username of one of the unexpectedly duplicated usernames).
Does that jive with your memory and/or current thoughts on how we approach this? I've tried thinking through various scenarios where this could be catastrophic but I cannot think of any. I'm thinking this is a wontfix (or push to major release milestone) as I cannot think of any way to address this without additional strings - which might work well w/ the error/warning messaging we did in #13865 to just warn someone "yo you have 2 users with the same username 'jakethesnake', change one of them or else only 1 of those users will be able to access their account".
In any case - happy to chat about this further and look forward to your thoughts
Hi! I’ve been exploring Kolibri’s user management flows as part of GSoC preparation, and this issue is really interesting from a UX/system design perspective.
From the discussion, it seems the preference is to avoid enforcing strict uniqueness at the backend level and instead provide users with the tools to resolve conflicts themselves.
Building on that direction, I was thinking a clearer flow could be:
- Surface a warning at the point of restoring a user if a duplicate username already exists
- Clearly indicate which accounts are affected (e.g., highlighting both entries in the UI)
- Provide a guided resolution step (e.g., prompt to rename one of the users immediately or link to edit flow)
This would serve as a straightforward and simple fix and could help prevent confusion later (like login conflicts) while still keeping the system flexible and avoiding stricter and more complicated constraints.
Also, since this involves user-facing messaging, would it make sense to standardize this kind of conflict warning pattern for similar cases like duplicates, naming conflicts, etc. ?
Hi! 👋
Thanks so much for your interest! This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues. If there are no unassigned 'help wanted' issues available, please wait until new ones are added.
We really appreciate your willingness to help. 😊
Are you preparing for Google Summer of Code? See our GSoC guidelines.