Please see the documentation: Groups FAQ and the question 1.6 How do I restrict a teacher to view only the information about the group they are in?
Roles and permissions
1 Course - more teachers and groups
This discussion has been locked so you can no longer reply to it.