currently, we have two default mappings for auto user group assignment – members and guests.
but its been asked for multiple times and is a good idea to break out the members assignment to user groups by WP role. Several have asked for it in the form of role manager plugin support, but it doesnt really involve it and wont be required. The real issue is to grant membership into a user group based upon WP role assignment.
I propose no changes to the default guest usergroup assignment. That works nicely and have no improvements in mind.
Currently, the assignment of these two default usergroups is in the forum – options – members tab. I propose it stay there.
In addition to the default usergroup for guests and members (that will remain – more later on why), I proposed adding drop downs for all WP Roles that exist. In each dropdown, you can select which user group you want that member to be in for that role. Then when a user is created (hook exists), or the role is later updated (hook exists), membership can be extended to that user group. As long as other plugins (role manager for example does) follow the WP standard way here, movement between roles can be handled.
the default member user group would remain as is to handle the case where no usergroup is selected for a given WP Role or the case where a new role is created (say with role manager) but again, no usergroup is selected. And it maintains backwards compatibility.
I still need to think about a good way to store the new default memberships. Its currently done in the options table but that may not be the best place now – perhaps a new table. also need to consider what to do about removal of WP roles which is possible but there isnt a hook in place to know that. could possible do a cleanup check for non existent role to usergroup mappings on some admin page. this might be another reason for separate table. thoughts?
Also, need to think about or offer options for current memberships when a role is changed. do we remove other memberships? or just add the new membership? or some way for users to select the behaviour. thoughts?
I have not looked at wpmu and what effect this might have. If wpmu goes against wp standards again, it could be hard or problematic to support both. My plan would be to get it working for wp and then see (or get radio to help) how it does with wpmu.

