GithubHelp home page GithubHelp logo

Deactivating multiple users at once about synadm HOT 4 CLOSED

joj0 avatar joj0 commented on June 8, 2024
Deactivating multiple users at once

from synadm.

Comments (4)

JOJ0 avatar JOJ0 commented on June 8, 2024

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.

Ascurius avatar Ascurius commented on June 8, 2024

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.

jlj77 avatar jlj77 commented on June 8, 2024

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.

JOJ0 avatar JOJ0 commented on June 8, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.