Interface: ApiUserInfo
Defined in: core/query/userinfo.ts:35
The userinfo object of a meta=userinfo response.
Extends
Properties
acceptlang?
optionalacceptlang?:ApiAcceptLang[]
Defined in: core/query/userinfo.ts:113
Parsed Accept-Language. uiprop=acceptlang.
anon?
optionalanon?:true
Defined in: core/query/userinfo.ts:43
true for an anonymous (IP) session. A Flag.
attachedlocal?
optionalattachedlocal?:Record<string,boolean>
Defined in: core/query/users.ts:131
Whether the account is attached to each provider, keyed like centralids. usprop=centralids / uiprop=centralids.
Inherited from
attachedwiki?
optionalattachedwiki?:Record<string,boolean>
Defined in: core/query/userinfo.ts:150
Whether the user is attached on the wiki named by the attachedwiki
parameter, keyed by provider. Requires uiprop=centralids together with
the attachedwiki parameter.
blockanononly?
optionalblockanononly?:boolean
Defined in: core/query/users.ts:52
Whether the block only affects anonymous users (soft block). A real boolean.
Inherited from
blockautoblocking?
optionalblockautoblocking?:boolean
Defined in: core/query/users.ts:83
Whether the block also enables the autoblock feature. A real boolean.
Since
MediaWiki 1.46
Inherited from
blockcomponents?
optionalblockcomponents?:ApiBlockInfo[]
Defined in: core/query/users.ts:76
The individual blocks composing this one; only for composite blocks.
Since
MediaWiki 1.42
Inherited from
blockedby?
optionalblockedby?:string
Defined in: core/query/users.ts:20
User name of the blocker; '' when unknown (e.g. autoblocks).
Inherited from
blockedbyid?
optionalblockedbyid?:number
Defined in: core/query/users.ts:23
User id of the blocker; 0 when unknown.
Inherited from
blockedtimestamp?
optionalblockedtimestamp?:string
Defined in: core/query/users.ts:29
When the block was placed or last modified.
Inherited from
blockedtimestampformatted?
optionalblockedtimestampformatted?:string
Defined in: core/query/users.ts:34
blockedtimestamp localized for the requesting user.
Inherited from
ApiUserCore.blockedtimestampformatted
blockemail?
optionalblockemail?:boolean
Defined in: core/query/users.ts:59
Whether the block prevents sending email. A real boolean.
Since
MediaWiki 1.41
Inherited from
blockexpiry?
optionalblockexpiry?:string
Defined in: core/query/users.ts:37
Block expiry; the literal infinite when the block does not expire.
Inherited from
blockexpiryformatted?
optionalblockexpiryformatted?:string
Defined in: core/query/users.ts:40
blockexpiry localized for the requesting user; only when the block expires.
Inherited from
ApiUserCore.blockexpiryformatted
blockexpiryrelative?
optionalblockexpiryrelative?:string
Defined in: core/query/users.ts:43
Human-readable time to expiry (e.g. in 5 days); only when the block expires.
Inherited from
ApiUserCore.blockexpiryrelative
blockhidden?
optionalblockhidden?:true
Defined in: core/query/users.ts:91
The block itself is suppressed (hidden from users without the hideuser
right). A Flag, present only when suppressed.
Since
MediaWiki 1.47
Inherited from
blockid?
optionalblockid?:number
Defined in: core/query/users.ts:17
ID of the block.
Inherited from
blocknocreate?
optionalblocknocreate?:boolean
Defined in: core/query/users.ts:49
Whether the block prevents account creation. A real boolean.
Inherited from
blockowntalk?
optionalblockowntalk?:boolean
Defined in: core/query/users.ts:66
Whether editing one's own talk page is prevented. A real boolean.
Since
MediaWiki 1.41
Inherited from
blockpartial?
optionalblockpartial?:boolean
Defined in: core/query/users.ts:46
Whether the block only applies to certain pages, namespaces and/or actions. A real boolean.
Inherited from
blockreason?
optionalblockreason?:string
Defined in: core/query/users.ts:26
Block reason, in plain text.
Inherited from
cancreateaccount?
optionalcancreateaccount?:boolean
Defined in: core/query/userinfo.ts:79
Whether the user can create accounts. uiprop=cancreateaccount; a real
boolean (false when a policy prevents it), not a Flag.
Since
MediaWiki 1.40
cancreateaccounterror?
optionalcancreateaccounterror?:ApiMessage[] |ApiSpecMessage[]
Defined in: core/query/userinfo.ts:91
Why account creation is not allowed, as message objects. uiprop=cancreateaccount;
present only when the cancreateaccount check does not pass.
The shape follows the request's errorformat: under the default (bc)
format these are { message, params, code, type } specs, under a modern
format they are full ApiMessages.
Since
MediaWiki 1.40
centralids?
optionalcentralids?:Record<string,number>
Defined in: core/query/users.ts:128
Global (CentralAuth) ids keyed by provider. usprop=centralids / uiprop=centralids.
Inherited from
changeablegroups?
optionalchangeablegroups?:object
Defined in: core/query/userinfo.ts:59
Groups the (current) user may add/remove, and the self-service subsets.
uiprop=changeablegroups. Hyphenated keys are literal.
add?
optionaladd?:string[]
Groups the user may grant to others.
add-self?
optionaladd-self?:string[]
Groups the user may grant to their own account.
remove?
optionalremove?:string[]
Groups the user may revoke from others.
remove-self?
optionalremove-self?:string[]
Groups the user may revoke from their own account.
editcount?
optionaleditcount?:number
Defined in: core/query/users.ts:113
Total edit count. usprop=editcount / uiprop=editcount.
Inherited from
email?
optionalemail?:string
Defined in: core/query/userinfo.ts:140
The user's email address. uiprop=email, and only for a caller with
viewmyprivateinfo. An empty string when the address is unset or
hidden, otherwise the address.
emailauthenticated?
optionalemailauthenticated?:string
Defined in: core/query/userinfo.ts:143
When the email address was confirmed. uiprop=email; absent when never confirmed.
groupmemberships?
optionalgroupmemberships?:ApiUserGroupMembership[]
Defined in: core/query/users.ts:119
Group memberships with grant/expiry metadata. usprop=groupmemberships / uiprop=groupmemberships.
Inherited from
groups?
optionalgroups?:string[]
Defined in: core/query/users.ts:116
Groups the user belongs to (including implicit). usprop=groups / uiprop=groups.
Inherited from
id
id:
number
Defined in: core/query/userinfo.ts:37
User id; 0 for anonymous users.
implicitgroups?
optionalimplicitgroups?:string[]
Defined in: core/query/users.ts:122
Groups that apply by virtue of an inherent right, not membership. usprop=implicitgroups / uiprop=implicitgroups.
Inherited from
latestcontrib?
optionallatestcontrib?:string
Defined in: core/query/userinfo.ts:100
Timestamp of the user's latest edit. uiprop=latestcontrib; absent with no edits.
messages?
optionalmessages?:boolean
Defined in: core/query/userinfo.ts:53
Whether the user has unread talk-page messages. uiprop=hasmsg; a real boolean.
name
name:
string
Defined in: core/query/userinfo.ts:40
User name or IP address.
options?
optionaloptions?:Record<string,string|number|boolean|null>
Defined in: core/query/userinfo.ts:94
The user's preferences map (open; site/user specific). uiprop=options.
ratelimits?
optionalratelimits?:Record<string,Record<string,ApiRateLimit>>
Defined in: core/query/userinfo.ts:103
Effective rate limits keyed by action then bucket. uiprop=ratelimits.
realname?
optionalrealname?:string
Defined in: core/query/userinfo.ts:133
Real name. uiprop=realname; also absent when $wgHiddenPrefs includes
realname.
registrationdate?
optionalregistrationdate?:string
Defined in: core/query/userinfo.ts:97
Registration timestamp. uiprop=registrationdate.
rights?
optionalrights?:string[]
Defined in: core/query/users.ts:125
Effective rights. usprop=rights / uiprop=rights.
Inherited from
systemblocktype?
optionalsystemblocktype?:string
Defined in: core/query/users.ts:69
Type of the automatically applied system block; only for system blocks.
Inherited from
temp?
optionaltemp?:true
Defined in: core/query/userinfo.ts:50
true for a temporary (auto-created) account. A Flag.
Since
MediaWiki 1.42
theoreticalratelimits?
optionaltheoreticalratelimits?:Record<string,Record<string,ApiRateLimit>>
Defined in: core/query/userinfo.ts:110
Rate limits that would apply to this user, ignoring the exemptions they
actually hold (e.g. noratelimit). Same shape as ratelimits;
uiprop=theoreticalratelimits.
unreadcount?
optionalunreadcount?:string|number
Defined in: core/query/userinfo.ts:127
Number of unread watchlist notifications; the string 1000+ once the
count reaches the cap. uiprop=unreadcount.
watchlistlabels?
optionalwatchlistlabels?:ApiWatchlistLabel[]
Defined in: core/query/userinfo.ts:121
Custom watchlist exclusion/inclusion labels. uiprop=watchlistlabels;
requires $wgEnableWatchlistLabels, and [] when none are set.
Since
MediaWiki 1.46