How can I send a message to a grouping of students?
Groupings work slightly differently with activities, e.g. fora, than groups.
Go into the forum settings and under Common Module settings click on Show advanced
You can then choose a grouping for that particular forum.
This means that the forum will then be restricted to that chosen grouping.
So you could create a forum for grouping A and B, for example.