Manual:MediaWiki での利用者グループの設定

This page is a translated version of the page Manual:Setting user groups in MediaWiki and the translation is 47% complete.

MediaWiki では、既定で複数の利用者グループがあり、各グループは利用者に利用者権限 (を1まとまりにしたもの) を付与できます。 グループ一覧も参照してください。

特別ページ:利用者権限

MediaWiki バージョン:
1.10

単純なインターフェイス (Special:UserRights) があり、そこでは利用者を1つまたは複数の利用者グループに追加/除去できます。 To do this the acting user must have the userrights user right, which by default is granted to the ビューロクラット user group. Special:UserRights に直接アクセスすることも、左のツールボックス内の Special:SpecialPages を経由してアクセスすることもできます。 You can also view the rights an individual group has by accessing the Special:UserGroupRights special page.

Special:UserRights を使用する際のヘルプについては、Help:利用者権限と利用者グループ を参照してください。

From API

If you are developing a gadget, a bot (an admin bot) or other stuff that should be able to change user's groups through the API, see the page API:利用者の所属グループの変更 .

From the command line

The maintenance script createAndPromote.php can add groups to a user from the command line: php maintenance/createAndPromote.php Example --sysop

There is no way to remove a group from a user from the command line, without directly modifying the database.

From source code

If you are developing a MediaWiki extension such as a custom authentication manager or other stuff that should be able to change user's groups, you can have a look at these methods:

  • User::addGroup()
  • User::removeGroup()

関連ページ