You can use enrolment keys to allow people into the courses, and assign them to a group at the same time. If you create the same groups with the same enrolement key in each course, then that might do what you want: http://docs.moodle.org/en/Create_group#Enrolment_key
Roles and permissions
Role Capabilities
This discussion has been locked so you can no longer reply to it.