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
meta=globaluserinfo (gui)
- This module requires read rights.
- Source: CentralAuth
- License: GPL-2.0-or-later
Show information about a global user.
Parameters:
- guiuser
User to get information about. If guiuser and guiid both are omitted, it defaults to the current user.
- Type: user, by any of user name, IP, IP range and interwiki name (e.g. "prefix>ExampleName")
- guiid
Global user ID to get information about. If guiuser and guiid both are omitted, it defaults to the current user.
- Type: integer
- guiprop
Which properties to get:
- groups
- Get a list of global groups this user belongs to.
- rights
- Get a list of global rights this user has.
- merged
- Get a list of merged accounts.
- unattached
- Get a list of unattached accounts.
- editcount
- Get the user's global edit count.
- Values (separate with | or alternative): editcount, groups, merged, rights, unattached
Examples:
- Get information about the current global user
- api.php?action=query&meta=globaluserinfo [open in sandbox]
- Get information about global user Example
- api.php?action=query&meta=globaluserinfo&guiuser=Example&guiprop=groups|merged|unattached [open in sandbox]