Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Get rid of / delete dead users in the database after using a mautrix bridge (auto-imported contacts) #11526

Closed
KeenMaron opened this issue Dec 7, 2021 · 2 comments

Comments

@KeenMaron
Copy link

KeenMaron commented Dec 7, 2021

Hi!

I just tried the mautrix-signal bridge with my matrix server. It works well, but i don't really use it and deleted it.

My actuall problem is (already posted in the mautrix-signal hub, but so far no reply):

I'm using https://github.com/Awesome-Technologies/synapse-admin to get a better overview of my groups, chats, users and so on.

I was a little bit shocked, after connecting with the bridge. My server has 6 real contacts before, after connecting with the signal account, the bridge imported all my signal contacts (and files!).
After that the Synapse-Admin Web-GUI shows over 80 contacts. Is there a way to clean this up after logging out / uninstalling the bridge? Because this are dead entries and files after uninstalling the bridge.

If the 6 real users on my server also start to use the bridge, then the user list will explode with "fake" contacts which contain the phone number and sent/received files of every signal user.

The first 6 in the table are real matrix user. The others are created by the bridge.
image

There are serveral closed issues with a similar request to delete user completly + a script workaround which does not sound safe. It would be nice, if we can delete a user completely (after deactivation) with all related files. ( #1941 )

It would be awesome to delete user via "synapse-admin" webinterface. The possibility to do maintenance and get a good overview of the matrix server with the webinterface, is a game changer for a growing diverse community which could participate on the whole project.

@KeenMaron KeenMaron changed the title Get rid of dead users in the database after using a mautrix bridge (auto-imported contacts) Get rid of / delete dead users in the database after using a mautrix bridge (auto-imported contacts) Dec 7, 2021
@squahtx
Copy link
Contributor

squahtx commented Dec 8, 2021

Hi!

Thank you for trying out Synapse!

Synapse offers a way for admins to deactivate users, delete rooms and delete all files uploaded by a user:

The deactivate user command additionally offers a GDPR erase mode, which scrubs their display name.

These commands, including the GDPR erase mode, should be available through synapse-admin; if not, you can file a feature request against that repository.

Once the above commands have been run against the signal users, they will only appear in synapse-admin when the "show deactivated users" option is selected. Their avatars and display names will not be kept. Only their user ID will remain.

It's very unlikely that Synapse will support complete removal of user IDs, since that would allow new users to impersonate deactivated ones and inherit their permissions and bans over federation.

@squahtx squahtx closed this as completed Dec 8, 2021
@KeenMaron
Copy link
Author

Hi @squahtx sorry for my post. I couldn't delte data of the singal users if files exist. I have to delete every single file to delete the user completelty. Thank you for your reply. I will send a feature request to synpase-admin :).

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

No branches or pull requests

2 participants