synadm icon indicating copy to clipboard operation
synadm copied to clipboard

Add an option to filter out appservice users when listing users

Open Cadair opened this issue 2 years ago • 4 comments

Thanks for the awesome tool. I have loads of AS users and a few "regular" users on my server, I rarely want to operate on the AS users in the same way I want to operate on the regular ones.

Cadair avatar Nov 29 '21 10:11 Cadair

hi, you have an example synadm output (preferrably in pprint or yaml mode) and can tell me how to distinguish between appservice and regular users. Too lazy to research myself on what appservice users are atm. Thanks! I might be able to help, we'll see...

JOJ0 avatar Nov 29 '21 12:11 JOJ0

@Cadair Hi, please shed some light on your request if tou find the time.

I think I have an idea what you mean. appservice as in using appservice bridges. Anyway, I dont have experience with that. Send an example output an I'll help you filter an we think about whether or not this should be dirrctly supported within synadm.

JOJ0 avatar Nov 30 '21 08:11 JOJ0

There doesn't seem to be any way to recognize appservice user from not appservice user in Synapse's Admin API output at the moment. The best I could think of would require reading synapse config files to get reserved user id and compare that with Admin API output however that would be pretty complex.
On Synapse repo there is a similar feature request that would exclude appservice users in user list API output (https://github.com/matrix-org/synapse/issues/11202).

Friskygote avatar Feb 04 '22 20:02 Friskygote

Thanks for the note and issue linke @Friskygote. So this might be taken care of on Synapse's side. Let's just keep watching the issue ;-) BTW I edited your post to link directly to the Synapse issue, so it now shows up over there and links back to here :-)

JOJ0 avatar Feb 24 '22 07:02 JOJ0