Within your course, go to ‘Participants’ and then you will see the ‘Enrolled users’ dropdown menu, select ‘Groups’.
You will be brought to the following page.
Scroll down and click on ‘Create Group’.
Give your group a name and click ‘Save changes’.
Then click on ‘Add/Remove users’.
If you have a lot of learners in your course, you can search for the users you would like to add. Otherwise, you can simply select their names from the list on the right and then click the ‘Add’ button. To remove a group member, do the opposite; select their name from the list on the left and click ‘Remove’.
When you are finished click on the ‘Back to groups’ button.
Almost every activity that you can add to your course has a “Group” option in its settings. You can choose if only a certain group, all groups, or no groups (= all learners) should be able to access the activity.