You could create cohorts for each of the groups you have and then assign these cohorts to whichever courses you want.
Roles and permissions
Creating user groups and assigning to courses
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.