Thread:Project:Support desk/How create a user groups/reply (5)

Hi!

You create the user group in LocalSettings.php. All you have to do is to add some lines to the array $wgGroupPermissions. That way your above example creates the user group "ninja".

However, this code alone does not set this user group for any user! At that point the group is only available, but nothing more. You will at that time see it when you visit the page Special:ListGroupRights in your wiki.

Next go to the page Special:UserRights on your wiki and provide a user, whose rights you want to change. You will then see all the different groups, which are available. By default this will be "sysop", "bureaucrat" and "bot". Since you have the according configuration in LocalSettings.php, there will also be the group "ninja". Now check the groups as you wish and apply the changes. After that step your user is member of the according groups!

You will now see the user on your wiki on the page Special:ListUsers when you select the according group. And now you will also have the according rows in the database table user_groups.