Skip to content

Instantly share code, notes, and snippets.

@kevinlin1
Last active May 24, 2024 17:51
Show Gist options
  • Save kevinlin1/7f6ddcc763c95826ea99f9ac86823d84 to your computer and use it in GitHub Desktop.
Save kevinlin1/7f6ddcc763c95826ea99f9ac86823d84 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
from canvasapi import Canvas
import os
if __name__ == "__main__":
canvas = Canvas("https://canvas.uw.edu", os.getenv("TOKEN"))
course = canvas.get_course(os.getenv("COURSE_ID"))
groups = course.get_groups()
print("Pre-assign Room Name,Email Address")
for group in groups:
for user in group.get_users():
print(group.name + "," + user.login_id + "@uw.edu")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment