Fun with Groups and Sections

Inspired by Tyler Clair blog post "Sections to Groups Script Links to an external site." on Oct 26, 2016 and his wonderful script https://github.com/tylerclair/canvas_admin_scripts/blob/master/sections_to_groups.py Links to an external site.

and a question raised in the Canvas LMS Community Idea posting "Filter Gradebook by Groups Links to an external site." by  Katie Skapin Links to an external site. on Feb 13, 2017

I wrote a program that performs the inverse function of Tyler Clair's conversion of Sections to group, hence it is called  Download create_sections_from_groups.py

and invoked with

create_sections_from_groups.py course_id name_of_group_category

For example:

./create_sections_from_groups.py 5694 "TA_groups"

creates a section for each group in the group category "TA_groups"

Example of some groups

leads to:

Sections headings

New sections

(Note that the above is composed of two images to remove some sections that existed in the course, but were not relevant to this example.)