Comments (4)
Hi, nice feature idea and probably particularly useful for admins fighting spammers. FWIW the user list
command's filter option (-n
) passes directly to the API and thus supports what's implemented there: https://github.com/JOJ0/synadm/blob/master/synadm/api.py#L345
Most (all?) Admin API's require to either pass an offset or a limit to select how many results to return. I was facing this problem recently when trying to implement a "show empty rooms" command nicely but felt that it's not "right" when pagination is not respected and just passing a very high limit number is the clumsy workaround: d9e4781
I don't have a solution for this first challenge so maybe we should just accept that features like this can't be implemented perfectly but are good enough to get the job done...?
To get a solution for now, have you tried an approach using the list command, jq and other commandline tools for mass deletions?
from synadm.
To get a solution for now, have you tried an approach using the list command, jq and other commandline tools for mass deletions?
I have not tested this appraoch yet, but I will do it in the near future and come back to report on viability of this appraoch.
from synadm.
Cool, yeah, I'll try this approach shortly. I've retired a couple of bridges that've left my little homeserver with over 8000 defunct accounts. I'm sure I'll need to play nice with the rate limiting you mentioned, but yes, the example under Advanced Usage in your docs had me thinking about going down this route already. 👍
from synadm.
@jlj77 if it works for you please share here or to #synadm:peek-a-boo.at. I'd love to add it to the adv usage topic :-)
from synadm.
Related Issues (20)
- User modify API requires a redesign HOT 10
- User modify command doesn't show difference in non-interactive output mode
- synadm doesn't work after v0.38 with Click 7.0 HOT 8
- regtok delete is broken HOT 8
- Prepare for Read the Docs Configuration v2
- Add a way to see synadm version HOT 6
- 0.42 not on PyPi HOT 2
- Command line reference in docs is empty HOT 3
- Account (un)locking HOT 1
- Admin user filter in user list API
- User list function breaking change HOT 1
- Streamlining of "Admin API" wording HOT 2
- GitHub Actions pipeline "release" throwing deprecations/warnings HOT 1
- invalid token generated with synadm login HOT 2
- Removing of threepid is not supported HOT 2
- M_NOT_JSON error when trying to delete room HOT 2
- Links to synapse documentation is old
- Cannot do a login without first configuring synadm HOT 1
- Synapse returned status code 400 - Can only delete local media HOT 8
- synadm media delete uses deprecated API endpoint
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from synadm.