Allow only members of a group send private message to another group

We have a group of users, say it groupA, and we would like only members of groupA to send a private message to another group, say it groupB.

In other words, groupB members should receive a private message only from members of groupA.

In our case, we have customers who have be awarded a membership to groupA from the admin, to allow them (exclusively) ask question via PM to a group of experts (groupB). We do not want groupB to receive PMs from anybody except groupA members. Think of it as a special feature only for these VIP members of groupA.

Is there a way to accomplish this?

Thanks for your wonderful software and project!

This is going to require a custom plugin, I do not think there is a way to place this restriction without one.


Alternatively, is there another technique to allow a “set” of users send PM to another group or “set” of users?

My initial question was about groups, but I was wondering about some way to utilise trust_levels, or custom fields of users (that is my notion of “set”).

My problem is that I need to allow one some users to PM some of the users (experts). I was thinking to have a post guiding the users to visit an external web site, do some integration with 3rd systems and using the Discourse RESTful API to “update” the user in order to have now the right to PM the expert user set.

Also - since my Ruby skills are zero :slight_smile: (so no hope to develop a classic plugin), another option for me to integrate would be custom JavaScript on the web site theme…