You can do this through a .CSV file upload for enrollments. Moodledocs has the format for the spreadsheet. You can upload multiple users, assign course roles, and assign groups. There may be other ways to do this as well. I would be interested to hear from others in the community.