Awesome-Technologies / synapse-admin

Admin console for synapse Matrix homeserver
https://awesome-technologies.github.io/synapse-admin/
Apache License 2.0
821 stars 124 forks source link

filter users to see only real and local matrix users #269

Open nebocamin opened 2 years ago

nebocamin commented 2 years ago

hi, we have a matrix server with enabled bridges and i would like to see only the real matrix users between all those bridge-ghosts. i can search vor signal, whatsapp or telegram, but not for my real "customers". can this enhancement possibly be made? thanks.

dklimpel commented 2 years ago

This is a missing upstream feature at the moment. https://github.com/matrix-org/synapse/issues/11202

felixx9 commented 2 years ago

extending the search functionality by having an exclude term and logical operators would do a decent job, too. Only for this admin GUI, though.

example:

a_search_term & not_in('signal', 'telegram', 'slack', 'whatsapp')

hmmm....

gabrc52 commented 1 year ago

The filtering could be done on the client side, even if it's slower.

awesome-manuel commented 1 year ago

The search API of synapse currently does not allow "negative" search terms. So we cannot exclude those users in the client.

gabrc52 commented 1 year ago

You can ask the server for a list of everyone and then filter the list the server returns to only include real people

gabrc52 commented 1 year ago

Upstream issue: https://github.com/matrix-org/synapse/issues/11609

gabrc52 commented 1 year ago

You can make their user type into bot and filter all bots: https://matrix-org.github.io/synapse/v1.88/admin_api/user_admin_api.html#list-accounts

But that would necessitate manually adding the bot type initially.