Title: User Groups
Last modified: August 21, 2016

---

# User Groups

 *  Resolved [jeezy](https://wordpress.org/support/users/traup/)
 * (@traup)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/user-groups-1/)
 * I am using a plugin called User Group Management to organize my users into groups.
   I do have each group linked to their own roles. However my users can belong to
   multiple groups and this is where my problem lies. Is it possible to do this 
   with this plugin?
 * I see that user 1 has the role subscriber and I can send an email to the subscriber
   role and that works great. That same user also belongs to the international group
   and since in wordpress I can only set 1 primary role this will not work.
 * Ideas?
 * [http://wordpress.org/extend/plugins/email-users/](http://wordpress.org/extend/plugins/email-users/)

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/user-groups-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/user-groups-1/page/2/?output_format=md)

 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/user-groups-1/#post-3951771)
 * I am Sitting on a patch which I need to incorporate that addresses this exact
   issue (I think). I will try and do it tonight or tomorrow morning. I am delinquent
   on getting this done, a lot of other issues have taken priority.
 *  Thread Starter [jeezy](https://wordpress.org/support/users/traup/)
 * (@traup)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/user-groups-1/#post-3951796)
 * [@mike](https://wordpress.org/support/users/mike/) – very good sir. I look forward
   to the patch. Excellent plugin btw.
 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/user-groups-1/#post-3951801)
 * Now that it is morning and I am a little more focused, I am re-reading this thread.
   I am not sure the plugin you’re using is the same as the other plugin I have 
   a patch for. Can you take a look at [this thread](http://wordpress.org/support/topic/patch-to-make-user-groups-and-email-users-plugins-play-nice-together?replies=1)
   and let me know if they’re the same plugin?
 *  Thread Starter [jeezy](https://wordpress.org/support/users/traup/)
 * (@traup)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/user-groups-1/#post-3951802)
 * It is not the same plugin. User Groups doesn’t provide any security or access
   restriction capabilities. The plugin I am using is [http://wordpress.org/plugins/user-access-manager/](http://wordpress.org/plugins/user-access-manager/)
 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/user-groups-1/#post-3951803)
 * Ok, I will have to take look at that. Work is crazy busy right now so it may 
   be a few days before I can look at this other plugin and see if I have any ideas.
 *  Thread Starter [jeezy](https://wordpress.org/support/users/traup/)
 * (@traup)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/user-groups-1/#post-3951806)
 * UAM creates two tables, one to hold the group info and then a relational table
   for the user id and group id. I don’t think it would be to hard to implement 
   a solution to query user email addresses using this data. But I’m not sure about
   the email-users plugin and how to go about incorporating that.
 * I would give this a shot at implementing but I don’t want to not miss out on 
   future updates.
 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/user-groups-1/#post-3951840)
 * The best way to do this is probably to create a separate plugin that creates 
   a bridge between the two plugins. That way you don’t miss out on updates to either
   plugin by forking them. That is what I recommend for people who want to make 
   use of the User Meta filtering functionality that Email Users supports. It has
   some hooks to facilitate doing it and that is probably what I would look at first
   to link it to the other plugin.
 *  Thread Starter [jeezy](https://wordpress.org/support/users/traup/)
 * (@traup)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/user-groups-1/#post-3951844)
 * Thanks Mike, I think I will go this route with using my functions.php file. Your
   filter is using user meta data but the group plugin has it’s own separate table.
   I don’t see how this will work using meta data as a user can have multiple group
   relationships.
 * If I was to write my own functions that return an array of email address from
   a desired group, how would I push that array into the email_users plugin for 
   email distribution?
 *  Thread Starter [jeezy](https://wordpress.org/support/users/traup/)
 * (@traup)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/user-groups-1/#post-3951846)
 * I created a plugin with a separate form with a drop down list of UAM groups along
   with a subject/message. I then passed that collected data through a function 
   that generates an array of emails from that selected group to the Email Users
   plugin function called mailusers_send_mail().
 * Everything seems to be working.
 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/user-groups-1/#post-3951848)
 * If you want to send it to me (use my WordPress.org username at gmail dot com)
   I will look at including it in the next update. There are a number of similar“
   User Group” plugins so making some optional functionality for sites that have
   them installed would be useful.
 *  Thread Starter [jeezy](https://wordpress.org/support/users/traup/)
 * (@traup)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/user-groups-1/#post-3951849)
 * It’s on the way. Take it as a proof of concept plugin, not too much extra flare
   or validation built into it.
 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/user-groups-1/#post-3951881)
 * I have added an integration of UAM to Email-Users. If you’d like to check it 
   out, you can try it in the [v4.5.0-beta release](http://michaelwalsh.org/blog/2013/08/01/email-users-v4-5-0-beta-1-now-available/)
   I posed on my web site today.
 *  Thread Starter [jeezy](https://wordpress.org/support/users/traup/)
 * (@traup)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/user-groups-1/#post-3951882)
 * broken link to your blog
 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/user-groups-1/#post-3951883)
 * Hmm – works when I click on it. It is the top post currently on [michaelwalsh.org](http://michaelwalsh.org).
 *  Thread Starter [jeezy](https://wordpress.org/support/users/traup/)
 * (@traup)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/user-groups-1/#post-3951886)
 * I installed the plugin, deactivated the one I created, cleared the cache and 
   getting a fatal error: Call to undefined function mailusers_get_recipients_from_terms()
   line 179.
 * I am able to see my UAM groups in the send to group page.

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/user-groups-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/user-groups-1/page/2/?output_format=md)

The topic ‘User Groups’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/email-users_a0e0cf.svg)
 * [Email Users](https://wordpress.org/plugins/email-users/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-users/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-users/)
 * [Active Topics](https://wordpress.org/support/plugin/email-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-users/reviews/)

 * 22 replies
 * 2 participants
 * Last reply from: [jeezy](https://wordpress.org/support/users/traup/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/user-groups-1/page/2/#post-3951907)
 * Status: resolved