Enhanced Group Join Restrictions for Community Privacy

The restrictions for joining groups. It would be nice to be able to: 1. Add the same restriction options to the forum part. 2. Be able to set the option to join a group based on profile type and gender. This is good to be able to have a community where clients can chat without the interference of companies. Or in my use case patients without the interference of doctors.