views:

4330

answers:

7

Hi,

I have been reading carefully through the mediawiki documentation but I have not been able to find out how to create new groups.

When I look at Special:Userrights, I see only 3 groups : Bots, Sysops, Bureaycrats

I would like to create my own custom groups, so I can use some extensions like the http://www.mediawiki.org/wiki/Extension:Group_Based_Access_Control.

Can someone tell me how it's done, or point me to some documentation?

Thanks,

Jeff

A: 

I beleive I have found the answer, I just need to add the UserGroup and the permission to the wgGroupPermissions array in the LocalSettings.php file.

$wgGroupPermissions['TomatoUsers']['read']  = true;
$wgGroupPermissions['TomatoUsers']['edit']  = false;
jeph perro
+4  A: 

You can add permissions for new groups to your LocalSettings.php file and they will automatically appear in the Special:UserRights page.

For example, I wanted to disallow editing by regular users but create a "Trusted" group that was allowed to edit. The following code creates a "Trusted" group that is equal to the "user" group, except that "Trusted" users can edit but "user" users cannot.

$wgGroupPermissions['Trusted'] = $wgGroupPermissions['user'];
$wgGroupPermissions['user'   ]['edit']          = false;
$wgGroupPermissions['Trusted']['edit']          = true;
$wgGroupPermissions['sysop'  ]['edit']          = true;

On the Special:UserRights page, I can now check the "Trusted" box to make users trusted.

richardkmiller
Answer helped me out - up voted.
foxed
A: 

How can I allow a UserGroup to edit pages from just certain Category????

A: 

I think by using namespaces.

Norbert
A: 

I don't have the reputation to vote up the first answer (which can also be added to extension initialization files), but for when you get to adding users to your groups you may want to consider directly editing the database (ie. if you need to sync the wiki groups with external information). If you open the database "wikidb" the "PREFIX_user_groups"* table contains the mapping between user IDs (ug_user) and group names (ug_group). This table, combined with the "PREFIX_user"* table's name information (user_name) and ID information (user_id), give you all the information to add and remove large numbers of users from groups.

* Replace "PREFIX" with the database prefix you used for your wiki.

Compholio
A: 

Hello all,

      I had implemented the access control feature mentioned in 

http://www.mediawiki.org/wiki/Extension:Group_Based_Access_Control into our production wiki. Also I had set the variable $wgUseMediaWikiGroups to true in order to use the internal groups from MediaWiki. As there are only 3 groups available by default I'm not able to configure the access control feature for multiple users.

I would like to add new groups into my production wiki for eg:- engineering and set the

code engineering .So if i add $wgGroupPermissions['engineering']['*'] = true; to my LocalSettings.php will it add a new group engineering with all permissions ? If it's not correct it would be of a great help if someone can provide me the accurate php syntax.

Any help will be appreciated.

Vineeth
A: 

Here you will find a List of Permissions. http://www.mediawiki.org/wiki/Manual:User_rights

nevi