MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=globaluserrights

(main | globaluserrights)
  • Questo modulo richiede i diritti di lettura.
  • Questo modulo richiede i diritti di scrittura.
  • Questo modulo accetta solo richieste POST.
  • Fonte: CentralAuth
  • Licenza: GPL-2.0-or-later

Add/remove a user to/from global groups.

Parametri:
user

Nome utente globale.

Type: user, by any of nome utente e ID utente (ad esempio "#12345")
userid
Deprecato.

ID utente globale.

Type: integer
add

Aggiungi l'utente a questi gruppi globali.

Valori (separati da | o alternativa): steward
remove

Rimuovi l'utente da questi gruppi globali.

Valori (separati da | o alternativa): steward
reason

Motivo per la modifica.

Predefinito: (vuoto)
token

Un token "userrights" recuperato da action=query&meta=tokens

For compatibility, the token used in the web UI is also accepted.

This parameter is required.
tags

Questo parametro attualmente non è utilizzato.

Valori (separati da | o alternativa):
Esempi:
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 [apri in una 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 [apri in una sandbox]