Similar to createcourse, but with groups