I think it should work like a forum - each separate group has its own mini-forum within the forum activity - Student 1 will have to choose a group before adding an entry or on the adding form.
Read more: https://docs.moodle.org/28/en/Forum_settings#Group_mode