미디어위키 API 도움말
이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.
설명 문서 및 예시: https://www.mediawiki.org/wiki/API
action=userrights
(main | userrights)
- 이 모듈은 read 권한을 요구합니다.
 - 이 모듈은 write 권한을 요구합니다.
 - 이 모듈은 POST 요청만을 허용합니다.
 - 출처: MediaWiki
 - 라이선스: GPL-2.0+
 
Change a user's group membership.
변수:
- user
 User name.
- Type: user name
 - userid
 User ID.
- 유형: 정수
 - add
 Add the user to these groups.
- 값 ("|"로 구분): bot, sysop, bureaucrat
 - remove
 Remove the user from these groups.
- 값 ("|"로 구분): bot, sysop, bureaucrat
 - reason
 Reason for the change.
- 기본값: (비어 있음)
 - token
 A "userrights" token retrieved from action=query&meta=tokens
For compatibility, the token used in the web UI is also accepted.
- 이 변수는 필수 입력 사항입니다.
 
예시:
- Add user FooBot to group bot, and remove from groups sysop and bureaucrat.
 - api.php?action=userrights&user=FooBot&add=bot&remove=sysop|bureaucrat&token=123ABC [open in sandbox]
 - Add the user with ID 123 to group bot, and remove from groups sysop and bureaucrat.
 - api.php?action=userrights&userid=123&add=bot&remove=sysop|bureaucrat&token=123ABC [open in sandbox]