Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow admins to merge user accounts #1629

Open
RichiH opened this issue Nov 30, 2023 · 4 comments
Open

Allow admins to merge user accounts #1629

RichiH opened this issue Nov 30, 2023 · 4 comments

Comments

@RichiH
Copy link

RichiH commented Nov 30, 2023

Problem and impact

Sometimes, users register more than one account. It is currently not possible for admins to merge those users into one account.

Proposed solution / feature

Admins should be able to merge user accounts.

Context or examples

No response

@johanvdw
Copy link
Contributor

johanvdw commented Dec 1, 2023

So looking at the reverse relationships of users, the actual merge seems relatively easy: choosing one base User and moving those relationships or removing them (eg I would not move the token). https://docs.pretalx.org/developer/interfaces/models.html#users-and-profiles

The bigger question seems to be how you would find two users that can be merged as there is no real user interface for listing users across conferences. Perhaps that is needed as well.

@rixx
Copy link
Member

rixx commented Dec 5, 2023

This feature would be restricted to administrators. I do think having a list of registered users for superusers/administrators would be good.

@johanvdw
Copy link
Contributor

FYI, we had quite a number of duplicate users, and I ended up creating a management script
https://github.com/FOSDEM/pretalx-integration/blob/master/devroom-settings/devroom_settings/management/commands/merge_users.py
not super nice, but it works.

@rixx
Copy link
Member

rixx commented Jan 31, 2024

Thanks! That does look like a good start – fwiw, you'll probably want to also migrate ActivityLog objects (although I know you handle your audit logging separately).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants