Provides a way to automatically group users based on account values
Compatible with DokuWiki
Greebo
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to virtualgroup
Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.
After installing, the automatic grouping can be configured exclusively in the Configuration page in the Admin Menu.
There are three settings:
This plugin uses the wiki's assigned authentication module. It is shown to work on the default auththenication module, and should support any module where the users can be listed AND the groups modified.
<group name>,<account value>,<PCRE regular expression>
login
for the username, name
for the wiki visible name, or mail
for the email address./expression/
for case sensitive matches and /expression/i
for case insensitive matches. Please refer to PHP PCRE documentation for further information. There can be more than one rule per group. In that case, a user is included in the group if any rule matches and removed if all rules fail.
Find any username containing mike
and add them to the mikes
group:
mikes,login,/mike/
The above rule with a case insensitive search:
mikes,login,/mike/i
Add all users with a Gmail email address to the Gmail
group:
Gmail,mail,/@gmail.com$/i
Add the user to the Dirty
group if their username contains dishes
(case insensitive), their given name contains the word Harry
(case sensitive), or their email ends in @dirty.com
(case insensitive):
Dirty,login,/dishes/i Dirty,name,/\bHarry\b/ Dirty,mail,/@dirty.com$/i
The recommended method to test is to use an online PCRE testing tool and test your scenarios out there. One such site is Regular Expressions 101.
This plugin also supports the Dokuwiki debug framework. If you enable the allow debug setting in the wiki's configuration, then this module will display the groups a user is assigned to or removed from. Please note that the debug option is not meant to be left on, so disable it when you are done testing.
There are no plans at this time for any new features. If you have a feature request, then please file it as an issue at GitHub by clicking on the „Submit Bug” button at the top of this page.