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=userrights

(main | userrights)
  • มอดูลนี้ต้องการสิทธิในการอ่าน
  • มอดูลนี้ต้องการสิทธิในการเขียน
  • มอดูลนี้ยอมรับเฉพาะคำขอ POST เท่านั้น
  • แหล่งที่มา: MediaWiki
  • สัญญาอนุญาต: GPL-2.0-or-later

เปลี่ยนการเป็นสมาชิกกลุ่มของผู้ใช้

Specific parameters:
Other general parameters are available.
user

ผู้ใช้

ชนิด: ผู้ใช้ โดย ชื่อผู้ใช้ และ ไอดีผู้ใช้ (เช่น "#12345")
userid
เลิกใช้แล้ว

ให้ระบุ user=#ID แทน

Type: integer
add

เพิ่มผู้ใช้ลงในกลุ่มเหล่านี้ หรือถ้าผู้ใช้เหล่านั้นเป็นสมาชิกอยู่แล้ว ให้ปรับปรุงเวลาสิ้นสุดของการเป็นสมาชิกของผู้ใช้เหล่านั้นในกลุ่มนั้น

ค่า (คั่นด้วย | หรือข้อความทดแทน): accountcreator, bot, bureaucrat, checkuser, confirmed, import, interface-admin, ipblock-exempt, no-ipinfo, steward, suppress, sysop, transwiki
expiry

Expiry timestamps. May be relative (e.g. 5 months or 2 weeks) or absolute (e.g. 2014-09-18T12:34:56Z). If only one timestamp is set, it will be used for all groups passed to the add parameter. Use infinite, indefinite, infinity, or never for a never-expiring user group.

คั่นค่าต่าง ๆ ด้วย | หรือข้อความทดแทน
Maximum number of values is 50 (500 for clients that are allowed higher limits).
Default: infinite
remove

Remove the user from these groups.

ค่า (คั่นด้วย | หรือข้อความทดแทน): accountcreator, bot, bureaucrat, checkuser, confirmed, import, interface-admin, ipblock-exempt, no-ipinfo, steward, suppress, sysop, transwiki
reason

เหตุผลในการเปลี่ยน

ค่าเริ่มต้น: (ว่าง)
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

Change tags to apply to the entry in the user rights log.

ค่า (คั่นด้วย | หรือข้อความทดแทน):
watchuser

Watch the user's user and talk pages.

Type: boolean (details)
watchlistexpiry

Watchlist expiry timestamp. Omit this parameter entirely to leave the current expiry unchanged.

Type: expiry (details)