The term importing groups may give you the impression that you will import students into a group. The Import Groups button does not import students into groups. It imports a text file that you can use to create groups. So, if you need to create a lot of groups at once, you can use this feature to do this.
This needs to be done by a site administrator.
If you need to import students and put them into groups, use the upload students feature described in the Adding student to a cohort in bulk – Upload section. However, instead of adding students to the cohort, you will add them to a course and group. You perform this by specifying the course and group fields in the upload file, as shown in the following code:
username,email,firstname,lastname,course1,group1,course2 ...