⛔ Script to suspend Canvas user accounts using a CSV input file with user ids.
- Canvas API Token
- Required external Python libraries:
- requests
- Update your Canvas API Token and Canvas Portal's Base URL in the
config.py
file. - Add Canvas user ids to suspend in the
input_user_id.csv
file. User IDs can be retrieved from the user provisioning report. - Run
suspend_users.py
. - Upon successful execution, a CSV output file listing suspension status will be created in the current working directory. Open the file to verify all the users are successfully suspended.
- A more comprehensive log file will be created in the
log
directory within the current working directory.