MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=setglobalaccountstatus
(main | setglobalaccountstatus)
- このモジュールは読み取りの権限を必要とします。
- このモジュールは書き込みの権限を必要とします。
- このモジュールは POST リクエストのみを受け付けます。
- ソース: CentralAuth
- ライセンス: GPL-2.0-or-later
Set a global user's status.
パラメーター:
- user
User to change the status of.
- このパラメーターは必須です。
- locked
Change whether this user is locked or not.
- 値 (次の値のいずれか1つ): Can be empty, or lock、unlock
- hidden
Change whether this user is not hidden, hidden from the global users list, or suppressed.
- 値 (次の値のいずれか1つ): Can be empty, or lists、suppressed
- reason
Reason for changing the user's status.
- statecheck
Optional MD5 of the expected current <username>:<hidden>:<locked>, to detect edit conflicts. Set <locked> to 1 for locked, 0 for unlocked.
- token
action=query&meta=tokens から取得した「setglobalaccountstatus」トークン
- このパラメーターは必須です。
例:
- Lock the global account for User:Example with reason "Spam"
- api.php?action=setglobalaccountstatus&user=Example&locked=lock&hidden=&reason=Spam [サンドボックスで開く]
- Unlock and suppress the global account for User:Example with reason "I can"
- api.php?action=setglobalaccountstatus&user=Example&locked=unlock&hidden=suppressed&reason=I%20can [サンドボックスで開く]