Manual:Setting user groups in MediaWiki

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎polski • ‎português do Brasil • ‎日本語

By default MediaWiki has several user groups that can grant a user a set of user rights. See also the list of groups.

Special:UserRights (MediaWiki 1.10 and higher)[edit]

MediaWiki version: 1.10

There is a simple interface (Special:UserRights) for adding a user to or removing a user from one or more user groups. To do this the acting user must have the userrights user right, which by default is granted to the "Bureaucrat" user group. You can access Special:UserRights directly or via Special:SpecialPages in the toolbox on the left (as of MediaWiki 1.16.0).

For help in using Special:UserRights, refer to Help:User rights and groupsHelp:User rights and groups.

Older versions of MediaWikiMediaWiki (prior to 1.15) do not have a general interface or setting the user rights field of user accounts (use Special:Makesysop instead).

From API[edit]

If you are developing a gadget, a bot (an admin bot) or other stuff that should be able to change user's groups through the API, see the page API:User group membershipAPI:User group membership.

From source code[edit]

If you are developing a MediaWiki extension such as a custom authentication manager or other stuff that should be able to change user's groups, you can have a look at these methods:

  • User::addGroup()
  • User::removedGroup()

As documented into the https://doc.wikimedia.org/mediawiki-core/master/php/User_8php_source.html page.

Related pages[edit]