Is there a way to assign mod status to multiple users at once, for example, by grouping users based on certain criteria? Let’s say, I want to assign mod status to all users with the @example.com email domain. Is it possible to perform bulk mod assignment in this manner?
This is not possible from the interface as far as I know, but can be done using the API or a rails script.
How many users must you promote to moderators to justify using an automated task? Are you trying to build an army ?
Hahaha, no, I was just trying to test some scripts using mod status.
There was no occurrence of this in the Discourse API, so now would have to check it out manually.
Rails scripts must certainly be done with caution, and many would say it’s better not to rely on this method to “do stuff” as it can easily go wrong.
That said, IF done with care, IF you know what you’re doing, it’s a powerful tool to do various bulk tasks.
Some scripts examples can be found there:
This documentation is incomplete, and will likely always be. Almost every action on Discourse uses the API. If you’re not finding what you’re looking for here, the best is reverse-engineering the API. It’s quite easy to do:
Thanks for sharing! I’ve worked with Discourse APIs before, but now I’m testing them thoroughly to see what’s the best I can build from this.