MedijaViki API pagalba
This is an auto-generated MediaWiki Action API documentation page.
action=globaluserrights
(main | globaluserrights)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Šaltinis: CentralAuth
- Licencija: GPL-2.0-or-later
Pridėti / pašalinti naudotoją prie / iš pasaulinių grupių.
Konkretūs parametrai:
Other general parameters are available.
- user
Visuotinis vartotojo vardas.
- Type: user, by any of naudotojo vardas ir naudotojo ID (pvz., „#12345“)
- userid
- Deprecated.
Visuotinis vartotojo ID.
- Type: integer
- add
Pridėti vartotoją į šias visuotines grupes.
- Values (separate with | or alternative): abusefilter-helper, abusefilter-maintainer, apihighlimits-requestor, captcha-exempt, founder, global-bot, global-deleter, global-flow-create, global-interface-editor, global-ipblock-exempt, global-rollbacker, global-sysop, global-temporary-account-viewer, local-bot, new-wikis-importer, ombuds, recursive-export, staff, steward, sysadmin, u4c-member, vrt-permissions, wmf-email-block-override, wmf-researcher
- expiry
Šis parametras šiuo metu nenaudojamas.
- Separate values with | or alternative.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- Default: infinite
- remove
Pašalinti vartotoją iš šių visuotinių grupių.
- Values (separate with | or alternative): abusefilter-helper, abusefilter-maintainer, apihighlimits-requestor, captcha-exempt, founder, global-bot, global-deleter, global-flow-create, global-interface-editor, global-ipblock-exempt, global-rollbacker, global-sysop, global-temporary-account-viewer, local-bot, new-wikis-importer, ombuds, recursive-export, staff, steward, sysadmin, u4c-member, vrt-permissions, wmf-email-block-override, wmf-researcher
- reason
Pakeitimo priežastis.
- Numatytasis: (tuščia)
- token
A "userrights" token retrieved from action=query&meta=tokens
For compatibility, the token used in the web UI is also accepted.
- This parameter is required.
Šis parametras šiuo metu nenaudojamas.
- Values (separate with | or alternative):
Pavyzdžiai:
- Add user FooBot to global group "bot", and remove from global groups "sysop" and "bureaucrat"
- api.php?action=userrights&user=FooBot&add=bot&remove=sysop|bureaucrat&token=123ABC [open in sandbox]
- Add the global user with ID 123 to global group "bot", and remove from global groups "sysop" and "bureaucrat"
- api.php?action=userrights&userid=123&add=bot&remove=sysop|bureaucrat&token=123ABC [open in sandbox]