There are multiple ways to do this - cohorts that are assigned to each course and then add the users to the cohort, put the course in a category and assign the student role to the category...
Installing and upgrading help
How I can create package of courses?
This discussion has been locked so you can no longer reply to it.