This page is a translated version of the page Manual:$wgGroupPermissions and the translation is 47% complete.
利用者権限、アクセス制御、モニタリング: $wgGroupPermissions
導入されたバージョン:1.5.0 (r9367)


$wgGroupPermissions利用者グループと許可する権限をキーとした二次元の配列です。 設定できる値は、権限を付与する場合の true か付与しない場合の false どちらかになります。

$wgGroupPermissionsで許可されているアクセス権は、常に累積されます。 If a user is member of different groups, then the user will get a right if it is granted to at least one of these groups even if it is not granted to their other groups. In other words, If one of the user's groups has a right, then it is not possible to take the right away using $wgGroupPermissions. Instead use $wgRevokePermissions to revoke permissions.

$wgGroupPermissions['user']['edit'] = true;



あなた自身の利用者グループを定義することもできます。 利用者グループの名前は255文字以内にしてください。[1] The groups, which have been defined either in the default settings or in LocalSettings.php , can be assigned to users through the wiki Special:Userrights interface.


# Start with assigning the default permissions from group "autoconfirmed"
$wgGroupPermissions['trustworthy'] = $wgGroupPermissions['autoconfirmed'];
# Add the permissions from group "bot"
$wgGroupPermissions['trustworthy'] = array_merge(
# Now modify these rights:
$wgGroupPermissions['trustworthy']['delete'] = true;
$wgGroupPermissions['trustworthy']['protect'] = true;
$wgGroupPermissions['trustworthy']['patrol'] = true;

This creates a group called "trustworthy".

Now add human readable names for your newly created group to the wiki for the "trustworthy" group, e.g. on page "MediaWiki:Group-trustworthy" in plural "Trustworthy editors" and on page "MediaWiki:Group-trustworthy-member" in singular "Trustworthy editor". This is an optional but recommended step.

Users of that group have the same permissions as users from the groups "autoconfirmed" and "bot". Additionally, they will be able to delete and protect pages, and to patrol edits.

For in-depth documentation, see Manual:利用者権限 .

  警告: Functionality to make specific pages inaccessible has not been extensively tested for security. Use at your own risk!


Default values vary from version to version. You may find the one which apply to your mediawiki setup in DefaultSettings.php . 詳細情報は Manual:利用者権限 を参照してください。


Some extensions, such as RenameUser or CheckUser , add new rights which can be configured and assigned in the same manner.


Since REL 1.25, you can do the following in extension.json :

MediaWiki バージョン:
Gerrit change 166705

Assigning a new permission to an existing group

	"GroupPermissions": {
		"user": {
			"edit": true

Adding a new group

	"GroupPermissions": {
		"trustworthy": {
			"delete": true,
			"protect": true,
			"patrol": true



  1. $groupテーブル内のug_groupの行の長さを見てください。