create_user_group()
Parameters
- Token(character varying)
- CourseID(integer)
- GroupName(character varying)
- Visibility(integer)
Returns
Description
- Creates a new usergroup with the GroupName. Visibility is one of the following values:
- Global Visibility - All users can see the group, even users not in a course
- Course Visibility - All users in the course can see the group.
- Group Visibility - Only members of the specific group can see the group.
- Message Visibility - Only groups created using create_message() can have this visibility level. User Groups
with this visibility do not show up at all in get_my_user_groups().
Errors
- 1 - The ClassID is not valid.
- 2 - Invalid Session.
- 3 - The first character in a groupname cannot be a number.
- 4 - Group Name cannot be empty.
- 5 - Visibility Level is invalid.
- 6 - Group Name is already in use in this class.
- 2 - Only admins can create global visible groups.
- 7 - Only admins, Instructors, and TAs can create course visible groups.
Related functions