Manual:Setting user groups in MediaWiki

By default MediaWiki has several that can grant a user a set of user rights.

See also man>Special:MyLanguage/Manual:User_rights#List_of_groups|the list of groups.

Special:UserRights
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  user right, which by default is granted to the  user group.

You can access Special:UserRights directly or via Special:SpecialPages in the toolbox on the left (as of ).

You can also view the rights an individual group has by accessing the Special:UserGroupRights special page.

For help in using Special:UserRights, refer to .

Older versions of  (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
If you are developing a ext>Special:MyLanguage/Extension:Gadgets|gadget, a bots>Special:MyLanguage/Manual:Bots|bot (an admin bot) or something else that should be able to change user's groups through the API, see the page .

From source code
If you are developing a MediaWiki ext>Special:MyLanguage/Manual:Extensions|extension such as a man>Special:MyLanguage/Manual:SessionManager and AuthManager|custom authentication manager or other stuff that should be able to change user's groups, you can have a look at these methods:



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

Related pages

 * <tvar|man></> (Explanation of the different “rights” which can be assigned to a group)