Trợ giúp về API MediaWiki

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)
  • Mô đun này cần quyền đọc.
  • Mô đun này cần quyền ghi.
  • Mô đun này chỉ có nhận các yêu cầu POST.
  • Source: CentralAuth
  • License: GPL-2.0-or-later

Add/remove a user to/from global groups.

Các tham số:
Other general parameters are available.
user

Tên thành viên toàn cục.

Kiểu: người dùng, bằng một giá trị bất kỳ trong tên người dùng và số người dùng (ví dụ “#12345”)
userid
Lỗi thời.

Số thành viên toàn cục.

Type: integer
add

Thêm người dùng vào các nhóm toàn cục này.

Các giá trị (phân tách bằng |): 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, new-wikis-importer, oathauth-tester, ombuds, recursive-export, staff, steward, sysadmin, vrt-permissions, wmf-email-block-override, wmf-researcher
expiry

Dấu thời gian hết hạn. Có thể là tương đối (ví dụ 5 tháng hoặc 2 tuần ) hoặc tuyệt đối (ví dụ 2014-09-18T12:34:56Z). Nếu chỉ có một dấu thời gian được đặt, dấu thời gian này sẽ được sử dụng cho tất cả các nhóm được chuyển đến tham số thêm . Sử dụng vô hạn , không xác định, vô hạn hoặc không bao giờ cho nhóm người dùng không bao giờ hết hạn.

Phân tách các giá trị bằng |.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
Default: infinite
remove

Tách người dùng khỏi các nhóm toàn cục này.

Các giá trị (phân tách bằng |): 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, new-wikis-importer, oathauth-tester, ombuds, recursive-export, staff, steward, sysadmin, vrt-permissions, wmf-email-block-override, wmf-researcher
reason

Lý do thay đổi.

Mặc định: (trống)
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.
tags

This parameter is currently unused.

Các giá trị (phân tách bằng |): AWB
Các ví dụ:
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]