Manual:User rights/es

Jump to navigation Jump to search
This page is a translated version of the page Manual:User rights and the translation is 10% complete.

Outdated translations are marked like this.
Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Tagalog • ‎dansk • ‎español • ‎français • ‎italiano • ‎polski • ‎português do Brasil • ‎русский • ‎српски / srpski • ‎українська • ‎हिन्दी • ‎মেইতেই লোন্ • ‎中文 • ‎日本語 • ‎한국어

Los derechos de usuario son permisos específicos de acceso y ejecución que pueden ser asignados a grupos de usuarios adaptables. Los grupos pueden ser asignados a (o ser retirados de) los usuarios mediante la página especial Special:UserRights. Véase Help:Derechos de usuarios y grupos .

El acceso a la propia interfaz está gobernado por el derecho userrights, por lo que solamente los usuarios del grupo Burócratas pueden usarla (en una instalación predeterminada). Véase Manual: Configurar/Ajustar grupos de usuarios en MediaWiki para más información sobre la asignación y gestión de grupos de usuarios.

Cambiando permisos de grupo

Una instalación por defecto de MediaWiki asigna permisos concretos a grupos determinados (consulte más abajo). Puede cambiar los permisos por defecto editando el arreglo $wgGroupPermissions en LocalSettings.php con la sintaxis.

$wgGroupPermissions['group']['right'] = true /* o «false» */;
In a default installation $wgGroupPermissions will be set in includes/DefaultSettings.php, but it is not present in LocalSettings.php. quizá sea necesario que se añada en el archivo

If a member has multiple groups, they get all of the permissions from each of the groups they are in. All users, including anonymous users, are in the '*' group; all registered users are in the 'user' group. In addition to the default groups, you can arbitrarily create new groups using the same array.


This example will disable viewing of all pages not listed in $wgWhitelistRead , then re-enable for registered users only:

$wgGroupPermissions['*']['read']    = false;
# The following line is not actually necessary, since it's in the defaults. Setting '*' to false doesn't disable rights for groups that have the right separately set to true!
$wgGroupPermissions['user']['read'] = true;

This example will disable editing of all pages, then re-enable for users with confirmed email addresses only:

# Disable for everyone.
$wgGroupPermissions['*']['edit']              = false;
# Disable for users, too: by default 'user' is allowed to edit, even if '*' is not.
$wgGroupPermissions['user']['edit']           = false;
# Make it so users with confirmed email addresses are in the group.
$wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;
# Hide group from user list.
$wgImplicitGroups[] = 'emailconfirmed';
# Finally, set it to true for the desired group.
$wgGroupPermissions['emailconfirmed']['edit'] = true;

Creating a new group and assigning permissions to it

You can create new user groups by defining permissions for the according group name in $wgGroupPermissions['<group-name>'] where <group-name> is the actual name of the group.

Additionally to assigning permissions, you should create these three wiki pages with fitting content:

  • MediaWiki:Group-<group-name> (content: Name of the group)
  • MediaWiki:Group-<group-name>-member (content: Name of a member of the group)
  • MediaWiki:Grouppage-<group-name> (content: Name of the group page)

By default, bureaucrats can add users to, or remove them from, any group. However, if you are using Manual:$wgAddGroups and Manual:$wgRemoveGroups , you may need to customize those instead.


This example will create an arbitrary “ninja” group that can block users and delete pages, and whose edits are hidden by default in the recent changes log:

$wgGroupPermissions['ninja']['bot']    = true;
$wgGroupPermissions['ninja']['block']  = true;
$wgGroupPermissions['ninja']['delete'] = true;
Note: the group name cannot contain spaces, so use 'random-group' or 'random_group' instead of 'random group'

In this example, you would probably also want to create these pages:

  • MediaWiki:Group-ninja (content: Ninjas)
  • MediaWiki:Group-ninja-member (content: ninja)
  • MediaWiki:Grouppage-ninja (content: Project:Ninjas)

This will ensure that the group will be referred to as “Ninjas” throughout the interface, and a member will be referred to as a “ninja”, and overviews will link the group name to Project:Ninjas.

This example disables write access (page editing and creation) by default, creates a group named “Write”, and grants it write access. Users can be manually added to this group via Special:UserRights:

$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['user']['createpage'] = false;
$wgGroupPermissions['Write']['edit'] = true;
$wgGroupPermissions['Write']['createpage'] = true;

In this example, you would probably also want to create these pages:

  • MediaWiki:Group-Write (content: Writers)
  • MediaWiki:Group-Write-member (content: Writer)
  • MediaWiki:Grouppage-Write (content: Project:Write)

Removing predefined groups

MediaWiki contiene grupos predefinidos.

Estos grupos pueden ser eliminados al realizar la operación unset sobre las claves correspondientes de la variable $wgGroupPermissions: $wgGroupPermissions['<group-name>'].

A continuación podemos ver más detalles.


Este ejemplo eliminará el grupo bureaucrat por completo.

Debemos asegurarnos de que realizamos la operación unset sobre las 6 variables para que el grupo no salga en la página Special:ListGroupRights; sin embargo, realizar la operación unset sobre $wgGroupPermissions , será suficiente para que el grupo no salga en la página Special:UserRights.

This code should be placed after any require_once lines that add extensions such as Extension:Renameuser containing code that gives bureaucrats group permissions by default.

unset( $wgGroupPermissions['bureaucrat'] );
unset( $wgRevokePermissions['bureaucrat'] );
unset( $wgAddGroups['bureaucrat'] );
unset( $wgRemoveGroups['bureaucrat'] );
unset( $wgGroupsAddToSelf['bureaucrat'] );
unset( $wgGroupsRemoveFromSelf['bureaucrat'] );

In some extensions (Flow, Semantic MediaWiki, etc.), rights are added during extension registration or in a registration function. In this case, it could be necessary to use a registration function in LocalSettings.php to remove some predefined user groups:

$wgExtensionFunctions[] = function() use ( &$wgGroupPermissions ) {
    unset( $wgGroupPermissions['oversight'] );
    unset( $wgGroupPermissions['flow-bot'] );

Note on the group called “user”

With the above mechanism, you can remove the groups sysop, bureaucrat and bot, which - if used - can be assigned through the usual user permission system. However, it is currently impossible to remove the user group. This group is not assigned through the usual permission system. Instead, every logged in user automatically is member of that group. This is hardcoded in MediaWiki and currently cannot be changed easily.

List of permissions

The following user rights are available in the latest version of MediaWiki. If you are using an older version, look at “Special:Version” on your wiki and see if your version is covered in the “Versions” column.

Right Description User groups that have this right by default Versions
read Leer páginas - when set to false, override for specific pages with $wgWhitelistRead
Advertencia Advertencia: Setting the user right "read" (allow viewing pages) to false will only protect wiki (article, talk, ...) pages, but uploaded files (images, files, docs... in the $wgUploadPath subdirectories) will always remain readable via direct access by default.
Use the information from Manual:Image Authorisation and img_auth.php pages when you have the need to restrict image views and file download access to only logged-in users.
*, user 1.5+
applychangetags Aplicar etiquetas junto con los cambios propios user 1.25+
autocreateaccount Iniciar sesión automáticamente con una cuenta de usuario externa - a more limited version of createaccount 1.27+
createaccount Crear cuentas de usuario nuevas - register / registration *, sysop 1.5+
createpage Crear páginas que no sean de discusión - requires the edit right *, user 1.6+
createtalk Crear páginas de discusión - requires the edit right *, user 1.6+
edit Editar páginas *, user 1.5+
editsemiprotected Editar páginas protegidas como «Allow only autoconfirmed users» - without cascading protection autoconfirmed, bot, sysop 1.22+
editprotected Editar páginas protegidas como «Allow only administrators» - without cascading protection sysop 1.13+
minoredit Marcar ediciones como menores user 1.6+
move Trasladar páginas - requires the edit right user, sysop 1.5+
move-categorypages Trasladar categorías - requires the move right user, sysop 1.25+
move-rootuserpages Trasladar páginas raíz de usuario - requires the move right user, sysop 1.14+
move-subpages Trasladar páginas con sus subpáginas - requires the move right user, sysop 1.13+
movefile Trasladar archivos - requires the move right and $wgAllowImageMoving to be true user, sysop 1.14+
reupload Subir una nueva versión de un archivo existente - requires the upload right user, sysop 1.6+
reupload-own Subir una nueva versión de un archivo propio - requires the upload right (note that this is not needed if the group already has the reupload right) 1.11+
reupload-shared Sobrescribir localmente archivos presentes en el repositorio multimedia compartido - (if one is set up) with local files (requires the upload right) user, sysop 1.6+
sendemail Enviar mensajes de correo a otros usuarios user 1.16+
upload Subir archivos - requires the edit right and $wgEnableUploads to be true user, sysop 1.5+
upload_by_url Subir un archivo a traves de un URL - requires the upload right (Prior to 1.20 it was given to sysops) 1.8+
bigdelete Borrar páginas con historiales grandes sysop 1.12+
block Bloquear a otros usuarios para que no editen - Block options include preventing editing and registering new accounts, and autoblocking other users on the same IP address sysop 1.5+
blockemail Bloquear a un usuario para que no pueda mandar correos electrónicos - allows preventing use of the Special:Emailuser interface when blocking sysop 1.11+
browsearchive Buscar páginas borradas - through Special:Undelete sysop 1.13+
changetags Agregar y quitar etiquetas arbitrarias a revisiones individuales y entradas del registro - currently unused by extensions user 1.25+
delete Borrar páginas 1.5–1.11: allows the deletion or undeletion of pages.
1.12+: allows the deletion of pages. For undeletions, there is now the 'undelete' right, see below
sysop 1.5+
deletedhistory Ver el historial de páginas borradas sin su texto asociado sysop 1.6+
deletedtext Ver texto borrado y los cambios entre revisiones borradas sysop
deletelogentry Borrar y restaurar entradas de registro específicas - allows deleting/undeleting information (action text, summary, user who made the action) of specific log entries (not available by default) 1.20+
deleterevision Borrar y restaurar revisiones específicas de páginas - allows deleting/undeleting information (revision text, edit summary, user who made the edit) of specific revisions Split into deleterevision and deletelogentry in 1.20 (not available by default) 1.6+
editcontentmodel Editar el modelo de contenido de una página user 1.23.7+
editinterface Editar la interfaz de usuario - contains interface messages. For editing sitewide CSS/JSON/JS, there are now segregate rights, see below. sysop, interface-admin 1.5+
editmyoptions Editar tus preferencias * 1.22+
editmyprivateinfo Editar su propia información privada (ej.: correo electrónico, nombre real) * 1.22+
editmyusercss Editar tus archivos CSS - prior to 1.31 it was assigned to everyone (i.e. "*") (note that this is not needed if the group already has the editusercss right) user 1.22+
editmyuserjs Editar tus archivos JavaScript - prior to 1.31 it was assigned to everyone (i.e. "*") (note that this is not needed if the group already has the edituserjs right) user 1.22+
editmyuserjson Editar tus propias páginas en formato JSON (note that this is not needed if the group already has the edituserjson right) user 1.31+
editmywatchlist Editar su propia lista de seguimiento (algunas acciones seguirán añadiendo páginas aun sin este permiso). * 1.22+
editsitecss Editar CSS global del sitio interface-admin 1.32+
editsitejs Editar JavaScript global del sitio interface-admin 1.32+
editsitejson Editar JSON global del sitio interface-admin 1.32+
editusercss Editar las páginas de CSS de otros usuarios interface-admin 1.16+
edituserjs Editar las páginas de JavaScript de otros usuarios interface-admin 1.16+
edituserjson Editar archivos JSON de otros usuarios interface-admin 1.31+
hideuser Bloquear un nombre de usuario, haciéndolo invisible - (not available by default)

Only users with 1000 edits or less can be suppressed by default. Use $wgHideUserContribLimit to disable.

markbotedits Marcar las reversiones como ediciones de un bot - see Manual:Administrators#Rollback sysop 1.12+
mergehistory Fusionar historiales de páginas sysop 1.12+
pagelang Cambiar el idioma de la página - $wgPageLanguageUseDB must be true 1.24+
patrol Marcar ediciones de otros como verificadas - $wgUseRCPatrol must be true sysop 1.5+
patrolmarks Ver las marcas de verificación de cambios recientes 1.16+
protect Cambiar niveles de protección y editar páginas protegidas en cascada sysop 1.5+
rollback Revertir rápidamente las ediciones del último usuario que modificó una página en particular sysop 1.5+
suppressionlog Ver registros privados 1.6+
suppressrevision Ver, ocultar y mostrar revisiones específicas de páginas de cualquier usuario - Prior to 1.13 this right was named hiderevision (not available by default) 1.6+
unblockself Desbloquearse a sí mismo - Without it, an administrator that has the capability to block cannot unblock themselves if blocked by another administrator sysop 1.17+
undelete Restaurar una página - requires deletedhistory right sysop 1.12+
userrights Modificar todos los permisos de usuario - allows the assignment or removal of all* groups to any user.
*With $wgAddGroups and $wgRemoveGroups you can set the possibility to add/remove certain groups instead of all
bureaucrat 1.5+
userrights-interwiki Modificar los permisos de usuario en otros wikis 1.12+
viewmyprivateinfo Ver su propia información privada (ej.: correo electrónico, nombre real) * 1.22+
viewmywatchlist Ver su propia lista de seguimiento * 1.22+
viewsuppressed Ver revisiones ocultas de cualquier usuario - i.e. a more narrow alternative to "suppressrevision" (note that this is not needed if the group already has the suppressrevision right) 1.24+
autopatrol Marcar sus ediciones automáticamente como verificadas - $wgUseRCPatrol must be true bot, sysop 1.9+
deletechangetags Eliminar etiquetas de la base de datos - currently unused by extensions sysop 1.28+
import Importar páginas desde otras wikis - “transwiki” sysop 1.5+
importupload Importar páginas desde un archivo - This right was called 'importraw' in and before version 1.5 sysop 1.5+
managechangetags Crear y (des)activar etiquetas - currently unused by extensions sysop 1.25+
siteadmin Bloquear y desbloquear la base de datos - which blocks all interactions with the web site except viewing. (not available by default) 1.5+
unwatchedpages Ver una lista de páginas no vigiladas - lists pages that no user has watchlisted sysop 1.6+
apihighlimits Usar límites más altos en peticiones a través de la API bot, sysop 1.12+
autoconfirmed No resultar afectado por los límites de frecuencia de edición para las IP - used for the 'autoconfirmed' group, see the other table below for more information autoconfirmed, bot, sysop 1.6+
bot Ser tratado como un proceso automático - can optionally be viewed bot 1.5+
ipblock-exempt Evitar bloqueos a IP, automáticos y por intervalos sysop 1.9+
nominornewtalk No accionar el aviso de mensajes nuevos al realizar ediciones menores en páginas de discusión - requires minor edit right bot 1.9+
noratelimit No resultar afectado por los límites de frecuencia de edición - not affected by rate limits (prior to the introduction of this right, the configuration variable $wgRateLimitsExcludedGroups was used for this purpose) sysop, bureaucrat 1.13+
purge Purgar la antememoria de una página sin confirmación - URL parameter "&action=purge" user 1.10+
suppressredirect Trasladar páginas sin dejar redirección bot, sysop 1.12+
writeapi Hacer uso de la API de escritura *, user, bot 1.13+
Although these permissions all control separate things, sometimes to perform certain actions you need multiple permissions. For example allowing people to edit but not read pages doesn't make sense, since in order to edit a page you must first be able to read it (Assuming no pages are whitelisted). Allowing uploads but not editing does not make sense, since in order to upload an image you must implicitly create an image description page, etc.

List of groups

The following groups are available in the latest version of MediaWiki. If you are using an older version then some of these may not be implemented.

Group Description Default rights Versions
* all users (including anonymous). createaccount, createpage, createtalk, edit, editmyoptions, editmyprivateinfo, editmywatchlist, read, viewmyprivateinfo, viewmywatchlist, writeapi 1.5+
user registered accounts. applychangetags, changetags, createpage, createtalk, edit, editcontentmodel, editmyusercss, editmyuserjs, editmyuserjson, minoredit, move, move-categorypages, move-rootuserpages, move-subpages, movefile, purge, read, reupload, reupload-shared, sendemail, upload, writeapi
autoconfirmed registered accounts at least as old as $wgAutoConfirmAge and having at least as many edits as $wgAutoConfirmCount . autoconfirmed, editsemiprotected 1.6+
bot accounts with the bot right (intended for automated scripts). autoconfirmed, autopatrol, apihighlimits, bot, editsemiprotected, nominornewtalk, suppressredirect, writeapi 1.5+
sysop users who by default can delete and restore pages, block and unblock users, et cetera. apihighlimits, autoconfirmed, autopatrol, bigdelete, block, blockemail, browsearchive, createaccount, delete, deletedhistory, deletedtext, editinterface, editprotected, editsemiprotected, editsitejson, edituserjson, import, importupload, ipblock-exempt, managechangetags, markbotedits, mergehistory, move, move-categorypages, move-rootuserpages, move-subpages, movefile, noratelimit, patrol, protect, proxyunbannable, reupload, reupload-shared, rollback, suppressredirect, unblockself, undelete, unwatchedpages, upload 1.5+
interface-admin users who can edit sitewide CSS/JS. editinterface, editsitecss, editsitejs, editsitejson, editusercss, edituserjs, edituserjson 1.32+
bureaucrat users who by default can change other users' rights. noratelimit, userrights 1.5+

From MW 1.12, you can create your own groups into which users are automatically promoted (as with autoconfirmed and emailconfirmed) using $wgAutopromote . You can even create any custom group by just assigning rights to them.

Default rights

The default rights are defined in DefaultSettings.php .

Adding new rights

Information for coders only follows.

If you're adding a new right in core, for instance to control a new special page, you are required to add it to the list of available rights in User.php , $mCoreRights (example). If you're doing so in an extension , you instead need to use $wgAvailableRights .

You probably also want to assign it to some user group by editing $wgGroupPermissions described above.

If you want this right to be accessible to external applications by OAuth  or by bot passwords, then you will need to add it to a grant by editing $wgGrantPermissions .

// create ninja-powers right
$wgAvailableRights[] = 'ninja-powers';

//add ninja-powers to the ninja-group
$wgGroupPermissions['ninja']['ninja-powers'] = true;

//add ninja-powers to the 'basic' grant so we can use our ninja powers over an API request
$wgGrantPermissions['basic']['ninja-powers'] = true;

You also need to add right-[name] and action-[name] interface messages to /languages/i18n/en.json (with documentation in qqq.json). The right-* messages can be seen on Special:ListGroupRights and the action-* messages are used in a sentence like "You do not have permission to ...".

Véase también