Manual:User rights/ja

利用者権限は、カスタマイズ可能な 利用者グループ に割り当てられる、特定のアクセス権限や実行権限です. グループの利用者への追加/除去は、Special:Userrights 特別ページでできます. を参照してください.

Access to this interface is itself governed by the 'userrights' right, so only users in the 'bureaucrat' group can do it (in a default set-up). 利用者グループの管理と割り当てに関する詳細な情報はManual:User rights management/jaを参照してください.

This Special:UserRights interface was introduced in MediaWiki 1.5; see for earlier methods.

グループの権限の変更
デフォルトのMediaWikiインストレーションは特定の権限をデフォルトのグループに割り当てます(下記を参照). LocalSettings.php内で$wgGroupPermissions arrayを以下の構文を編集することでデフォルトの権限を変更できます.

In a default installation $wgGroupPermissions will be set in, but it is not present in. You will then need to add it in that file.

メンバーが複数のグループを持つときは、任意のグループの最も順位が高い権限を取得します. 匿名利用者を含む、すべての利用者は グループに所属します. また、登録利用者は全て グループに所属します. デフォルトのグループに加えて、同じ配列を使用して新しい任意のグループを作ることができます.

例
次の例では$wgWhitelistReadに挙げられたページ以外のページを全て閲覧不可能にした上で、登録利用者のみに対しては再び閲覧許可しています.

次の例ではすべてのページの編集を無効にして、メールアドレスで確認された利用者に対してのみ再び有効にします.

グループの新規作成とそのグループへの権限の割り当て
You can create new user groups by defining permissions for the according group name in  where  is the actual name of the group.

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


 * (content: )
 * (content: )
 * (content: )

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

例
次の例では任意の「ninja」グループを作ります. 利用者をブロックしページを削除することが可能で、そのグループの編集はデフォルトで最新の更新ログでは表示されません.


 * 注：利用者グループ名には、スペースを含めることは出来ません. 例えば、 という利用者グループを作りたい場合は や と言った名前を使って下さい.

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


 * (content: )
 * (content: )
 * (content: )

これは当該グループを、インタフェースに「忍者組」と呼ばせ、メンバーは「忍者」と呼ばせ、「」というグループ解説ページを設定します.

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:

In this example, you would probably also want to create these pages:
 * (content: )
 * (content: )
 * (content: )

Removing predefined groups
MediaWiki out of the box comes with a number of predefined groups. These groups can be removed by unsetting the according array keys, among them. 詳細は下記を参照してください.

例
This example will eliminate the bureaucrat group entirely. It is necessary to ensure that all six of these variables are unset for any group that one wishes to remove from being listed at Special:ListGroupRights; however, merely unsetting $wgGroupPermissions will suffice to remove it from Special:UserRights. This code should be placed after any  lines that add extensions such as  containing code that gives bureaucrats group permissions by default.

権限の一覧
以下の利用者権限は最新のバージョンのMediaWikiで利用可能です. 古いバージョンを利用している場合、wiki上の"Special:Version"を見て、"バージョン"カラムでカバーされているバージョンであるかご覧ください.

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.

グループの一覧
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.

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

既定の権限
The default rights are defined in.
 * Default values in HEAD version:
 * The default values in the latest stable MediaWiki release, version 1.25, are available here.
 * Additional rights: you should be able to list all the permissions available on your wiki by running.

新しい権限の追加
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,  (example). If you're doing so in an extension, you instead need to use.

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

You also need to add  and   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 ...".

関連項目

 * Special:ListGroupRights - links to this help page and might contain not yet documented rights
 * - help page describing use of the Special:Userrights interface (for bureaucrats)
 * - information about managing and the assignment of user groups.
 * (例)
 * - Many extensions relating to user rights
 * (例)
 * - Many extensions relating to user rights
 * - Many extensions relating to user rights
 * - Many extensions relating to user rights