Course Group Visibility

So I am aware of EdX’s feature that allows you to designate individual users in to a group or cohort. While these are helpful in some implementations, I am wanting to restrict entire course VISIBILITY to certain groups, not just the content. Does any one know of any way to do this? I would just like to customize which groups can view certain courses.