<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.tfcmud.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Manual%3AUser_rights_management</id>
	<title>Manual:User rights management - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.tfcmud.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Manual%3AUser_rights_management"/>
	<link rel="alternate" type="text/html" href="https://www.tfcmud.com/wiki/index.php?title=Manual:User_rights_management&amp;action=history"/>
	<updated>2026-04-30T18:43:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://www.tfcmud.com/wiki/index.php?title=Manual:User_rights_management&amp;diff=155&amp;oldid=prev</id>
		<title>Tynian: Copy from mediawiki</title>
		<link rel="alternate" type="text/html" href="https://www.tfcmud.com/wiki/index.php?title=Manual:User_rights_management&amp;diff=155&amp;oldid=prev"/>
		<updated>2011-01-09T21:49:29Z</updated>

		<summary type="html">&lt;p&gt;Copy from mediawiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!--&lt;br /&gt;
Temporarily hide image: user rights interface has been redesigned, so needs update&lt;br /&gt;
[[Image:SpecialUserrights.png|thumb|300px|The default Special:Userrights interface]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
This page describes user rights assignment and the use of [[Manual:$wgGroupPermissions|$wgGroupPermissions]], [[Manual:$wgAddGroups|$wgAddGroups]]/[[Manual:$wgRemoveGroups|$wgRemoveGroups]], [[Manual:$wgGroupsAddToSelf|$wgGroupsAddToSelf]]/[[Manual:$wgGroupsRemoveFromSelf|$wgGroupsRemoveFromSelf]] and [[Special:Userrights]].&lt;br /&gt;
&lt;br /&gt;
See '''[[Manual:User rights]]''' for user rights and user groups in general.&lt;br /&gt;
&lt;br /&gt;
== Default ==&lt;br /&gt;
{{MW 1.5|and after}}&lt;br /&gt;
The default setting is:&lt;br /&gt;
:&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$wgGroupPermissions['bureaucrat']['userrights'] = true;&amp;lt;/source&amp;gt;&lt;br /&gt;
This means that a user in the 'bureaucrat' group can add/remove any group, using [[Special:UserRights]].&lt;br /&gt;
Default Settings can be overloaded in the LocalSettings.php file from the root website.&lt;br /&gt;
&lt;br /&gt;
== Managing user rights of certain groups ==&lt;br /&gt;
This can be set using [[Manual:$wgAddGroups|$wgAddGroups]] and [[Manual:$wgRemoveGroups|$wgRemoveGroups]]. Introduced in 1.11, and behaviour changed in 1.12. For earlier versions you will need to use an extension.&lt;br /&gt;
&lt;br /&gt;
=== 1.11 === &lt;br /&gt;
{{MW 1.11|only}}&lt;br /&gt;
Set the following in your [[Manual:LocalSettings.php|LocalSettings.php]] file:&lt;br /&gt;
&lt;br /&gt;
Here are some examples, assuming you haven't changed anything yet (so bureaucrat still has his default 'userrights' right).&lt;br /&gt;
&lt;br /&gt;
* '''Example:''' Setting this lets the specified user level remove groups. It does not, however, let them add any.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$wgRemoveGroups['bureaucrat'] = true;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''Example:''' Setting this lets the specified user level add the specified groups. It does not, however, let them remove any.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$wgAddGroups['bureaucrat'] = array( 'sysop', 'bot' );&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''Example:''' Setting this lets a sysop add ''and'' remove the specified group.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$wgAddGroups['sysop'] = array( 'bot' );&lt;br /&gt;
$wgRemoveGroups['sysop'] = array( 'bot' );&lt;br /&gt;
$wgGroupPermissions['sysop']['userrights'] = true;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 1.12 ===&lt;br /&gt;
{{MW 1.12|and after}}&lt;br /&gt;
Here are some examples, assuming you haven't changed anything yet (so bureaucrat still has his default 'userrights' right).&lt;br /&gt;
&lt;br /&gt;
* '''Example:''' If a group (bureaucrat in this case) can remove any right. Bureaucrat can't add any groups.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$wgRemoveGroups['bureaucrat'] = true;&lt;br /&gt;
$wgGroupPermissions['bureaucrat']['userrights'] = false; # Disable the whole Special:Userrights interface.&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''Example:''' If a group (bureaucrat in this case) can add only some groups (sysop and bot groups in this case). Bureaucrat can't remove any group.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$wgAddGroups['bureaucrat'] = array( 'sysop', 'bot' );&lt;br /&gt;
$wgGroupPermissions['bureaucrat']['userrights'] = false; # Disable the whole Special:Userrights interface.&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''Example:''' You want a sysop to be able to add/remove the bot group, and a bureaucrat be able to add/remove all groups.&lt;br /&gt;
Set the following in your [[Manual:LocalSettings.php|LocalSettings.php]] file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$wgAddGroups['sysop'] = array( 'bot' );&lt;br /&gt;
$wgRemoveGroups['sysop'] = array( 'bot' );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
:This is for sysops. A bureaucrat has the 'userrights' right by default, so you don't need to set this unless you changed it in your LocalSettings.php.&lt;br /&gt;
&lt;br /&gt;
== Managing user rights of users on foreign wikis ==&lt;br /&gt;
{{MW 1.12|and after}}&lt;br /&gt;
This can be set using the right &amp;quot;userrights-interwiki&amp;quot;, for example:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All wikis you want to manage should be added to [[Manual:$wgLocalDatabases|$wgLocalDatabases]]. You can add this setting to LocalSettings.php (e.g. &amp;lt;code&amp;gt;$wgLocalDatabases = array('cool' =&amp;gt; 'coolwiki', 'foo' =&amp;gt; 'foowikidb');&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
In pre-1.12 versions you have to use [[Extension:Makesysop]].&lt;br /&gt;
&lt;br /&gt;
== Automatically promote users ==&lt;br /&gt;
{{MW 1.12|and after}}&lt;br /&gt;
This can be done using [[Manual:$wgAutopromote|$wgAutopromote]]. By default, there is a group &amp;quot;autoconfirmed&amp;quot;. Until 1.13 there was another default group called &amp;quot;emailconfirmed&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$wgAutopromote = array(&lt;br /&gt;
    'autoconfirmed' =&amp;gt; array( '&amp;amp;',&lt;br /&gt;
        array( APCOND_EDITCOUNT, &amp;amp;$wgAutoConfirmCount ),&lt;br /&gt;
        array( APCOND_AGE, &amp;amp;$wgAutoConfirmAge ),&lt;br /&gt;
    ),&lt;br /&gt;
    'emailconfirmed' =&amp;gt; APCOND_EMAILCONFIRMED,&lt;br /&gt;
);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Allow users to manage groups specifically on themselves ==&lt;br /&gt;
{{MW 1.12|and after}}&lt;br /&gt;
&lt;br /&gt;
* [[Manual:$wgGroupsAddToSelf|$wgGroupsAddToSelf]] can be set to allow users to add groups to themselves only.&lt;br /&gt;
* [[Manual:$wgGroupsRemoveFromSelf|$wgGroupsRemoveFromSelf]] can be set to allow users to remove groups from themselves only.&lt;br /&gt;
&lt;br /&gt;
This replaces [[Extension:Resign]].&lt;br /&gt;
&lt;br /&gt;
== Extensions ==&lt;br /&gt;
There are various extensions for user rights management. See [[:Category:User rights extensions]] for a full list of them. Below are alternative ways described using core instead of extensions.&lt;br /&gt;
&lt;br /&gt;
=== [[Extension:GiveRollback|GiveRollback]] ===&lt;br /&gt;
Alternative ways for 1.11 and 1.12. Note that the actions are now logged in [[Special:Log/rights]], not in [[Special:Log/gvrollback]].&lt;br /&gt;
{{MW 1.11|only}}&lt;br /&gt;
* '''Alternative way for the GiveRollback extension, for version 1.11 only.'''&lt;br /&gt;
Do not forget to replace &amp;lt;tt&amp;gt;'other groups'&amp;lt;/tt&amp;gt; by the groups a bureaucrat should be able to add/remove, e.g. &amp;lt;tt&amp;gt;'sysop'&amp;lt;/tt&amp;gt;!&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$wgAddGroups['bureaucrat'] = array( 'bot', 'other groups' );&lt;br /&gt;
$wgRemoveGroups['bureaucrat'] = array( 'bot', 'other groups' );&lt;br /&gt;
$wgGroupPermissions['bureaucrat']['userrights'] = true; # They need access to Special:Userrights&lt;br /&gt;
$wgGroupPermissions['rollback']['rollback'] = true; # Add the actual group&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{MW 1.12|only}}&lt;br /&gt;
* '''Alternative way for the GiveRollback extension, for version 1.12 only.'''&lt;br /&gt;
Do not forget to replace &amp;lt;tt&amp;gt;'other groups'&amp;lt;/tt&amp;gt; by the groups a bureaucrat should be able to add/remove, e.g. &amp;lt;tt&amp;gt;'sysop'&amp;lt;/tt&amp;gt;!&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$wgAddGroups['bureaucrat'] = array( 'rollback', 'other groups' );&lt;br /&gt;
$wgRemoveGroups['bureaucrat'] = array( 'rollback', 'other groups' );&lt;br /&gt;
$wgGroupPermissions['bureaucrat']['userrights'] = false; # Disable the whole Special:Userrights interface&lt;br /&gt;
$wgGroupPermissions['rollback']['rollback'] = true; # Add the actual group&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== [[Extension:MakeBot|MakeBot]] ===&lt;br /&gt;
Alternative ways for 1.11 and 1.12. Note that the actions are now logged in [[Special:Log/rights]], not in [[Special:Log/makebot]].&lt;br /&gt;
{{MW 1.11|only}}&lt;br /&gt;
* '''Alternative way for the MakeBot extension, for version 1.11 only.'''&lt;br /&gt;
Do not forget to replace &amp;lt;tt&amp;gt;'other groups'&amp;lt;/tt&amp;gt; by the groups a bureaucrat should be able to add/remove, e.g. &amp;lt;tt&amp;gt;'sysop'&amp;lt;/tt&amp;gt;!&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$wgAddGroups['bureaucrat'] = array( 'bot', 'other groups' );&lt;br /&gt;
$wgRemoveGroups['bureaucrat'] = array( 'bot', 'other groups' );&lt;br /&gt;
$wgGroupPermissions['bureaucrat']['userrights'] = true; # They need access to Special:Userrights&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{MW 1.12|only}}&lt;br /&gt;
* '''Alternative way for the MakeBot extension, for version 1.12 only.'''&lt;br /&gt;
Do not forget to replace &amp;lt;tt&amp;gt;'other groups'&amp;lt;/tt&amp;gt; by the groups a bureaucrat should be able to add/remove, e.g. &amp;lt;tt&amp;gt;'sysop'&amp;lt;/tt&amp;gt;!&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$wgAddGroups['bureaucrat'] = array( 'bot', 'other groups' );&lt;br /&gt;
$wgRemoveGroups['bureaucrat'] = array( 'bot', 'other groups' );&lt;br /&gt;
$wgGroupPermissions['bureaucrat']['userrights'] = false; # Disable the whole Special:Userrights interface&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Wikimedia ==&lt;br /&gt;
The [[Special:SiteMatrix|Wikimedia sites]] use a different user rights assignment scheme. &lt;br /&gt;
&lt;br /&gt;
* [[m:Bureaucrat|Bureaucrats]] can't access the whole Special:Userrights anymore, they can add the groups 'bot', 'sysop' and 'bureaucrat', and they can only remove 'bot'. Bureaucrats can access [[Extension:Makesysop|Special:Makesysop]] and [[Extension:MakeBot|Special:Makebot]]. Before 28 December 2007 (see [[bugzilla:11645|bug 11645]]), they could only access those special pages, and not the part of [[Special:Userrights]].&lt;br /&gt;
&lt;br /&gt;
* [[m:Stewards|Stewards]] can access the whole Special:Userrights on [[m:|Meta-Wiki]] and can remove and add all groups, including extra, optional groups of extensions such as 'checkuser', 'import' etc.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:Preventing access]]&lt;br /&gt;
* [[Manual:User rights]]&lt;br /&gt;
* [[Extension:UserRightsList]]&lt;br /&gt;
&lt;br /&gt;
{{Languages}}&lt;br /&gt;
{{Categories}}&lt;/div&gt;</summary>
		<author><name>Tynian</name></author>
	</entry>
</feed>