When a user is terminated in the organization, we would like the account to be disable using automation tools.
Hi @pKadam
You could use the Edit User API to suspend the user logins. That would keep their data intact while not allowing them to login anymore. If you have a single-signon system, you may also be able to suspend their login there to prevent them from logging in to any official systems (including Canvas) set to use that signon system.-Chris
Hi Chris,
I have a question on how to disable user using REST API as well. We would like to disable a batch of student accounts for housekeeping purpose. Would you recommend using custom python scripts on CLI or API tool like Postman to run Canvas REST API? Thanks!
Hi @ErnestChan,
I do pretty much everything with python scripts right now. I would say it really comes down to your preference though. I'm a Computer Science major, so python came pretty naturally to me (and provides the most flexibility), while I felt like I was spending more time to figure out how to get Postman to do what I wanted. I think a lot of people may be the opposite of me though…
-Chris
Thanks Christ for your respond. As a experienced python developer, how would you rate the difficulty of writing custom Python script for running Canvas REST API? I am learning all the Python basic from datacamp and wondering whether with the help of Claude Code I could manage this task without the help of our IT team.
Hello, I'm building a standalone app that integrate with CanvasI) - What are the requirements (and cost if any) for receiving an API developer key issued by Instructure? - Are Instructure-issued keys enabled globally in all Canvas organizations? or will there need to be institution-by-institution enablement? Thanks
Hi everyone, I am seeking some insight into how Canvas LMS handles HTTP errors and how they are reflected in the logs versus the user interface. We are currently observing the following behavior in our environment: Log-only errors: We are seeing 500 (Internal Server Error) and 503 (Service Unavailable) errors recorded in…
I'm currently integrating an LTI tool and attempting to use the Activity.id.history https://canvas.instructure.com/doc/api/file.tools_variable_substitutions.html#activity-id-history variable, but I'm experiencing issues getting it to work properly. What I've Done: Added the Activity.id.history variable to my Developer…
I looked through the LTI Variable Substitutions documentation and while there are variable substitutions available for Canvas.term.name and Canvas.term.id (which is the Canvas incremented ID like "104"), I was surprised to see there was no option for Canvas.term.sisSourceId I tried testing other possible variants that may…
Summary:The Learning Mastery Gradebook allows drag-and-drop reordering of outcome columns, and this triggers a call to /api/v1/courses/:course_id/assign_outcome_order. The API returns 204 No Content (success), but the column order does not persist after page refresh. Steps to Reproduce: Open Learning Mastery Gradebook for…