Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kolzchut/mediawiki-bots-removeuserfromgroup
A nodemw based script to remove a user(s) from one or more groups
https://github.com/kolzchut/mediawiki-bots-removeuserfromgroup
mediawiki mediawiki-api
Last synced: about 1 month ago
JSON representation
A nodemw based script to remove a user(s) from one or more groups
- Host: GitHub
- URL: https://github.com/kolzchut/mediawiki-bots-removeuserfromgroup
- Owner: kolzchut
- License: gpl-3.0
- Created: 2016-12-06T21:17:13.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-06T21:17:31.000Z (about 8 years ago)
- Last Synced: 2024-10-31T14:05:43.407Z (3 months ago)
- Topics: mediawiki, mediawiki-api
- Language: JavaScript
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RemoveUserFromGroup (node.js script for MediaWiki)
This script was return because MediaWiki doesn't have a builtin
maintenance script to remove groups from users. It uses the [MediaWiki API].[MediaWiki API]: https://www.mediawiki.org/wiki/API:User_group_membership#Adding_users_to_and_removing_them_from_groups
## Setup
1. `$ npm install`
2. Copy `config_example.json` as `config.json` and enter the following as appropriate for your wiki:
- server (e.g. example.com)
- path (the default for MediaWiki is "/w/")
- username
- password## Run
There are only two simple parameters:- groups: a list of groups to remove the user from, separated by `|` (pipe/vertical bar)
- users: a list of users to remove from said groups, separated by `|` (pipe/vertical bar)Example:
`node removeUserFromGroup.js --groups "editor|tester" --users "James Dean|Popeye|Snow White"`