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.
I have a developer key in our Test instance: How would I use this in a local program to make a REST API call? Looking at https://developerdocs.instructure.com/services/canvas/oauth2/file.developer_keys: Developer keys are OAuth2 client ID and secret pairs stored in Canvas that allow third-party applications to request…
I'm building a tool for my institution that imports grades from another LTI tool into Canvas so instructors can automate late assignment policies not otherwise supported by Canvas. I'm trying to use the LTIv1.3 ID which is readily available on the LTI-side as a link to the student record on Canvas, but I can't find the ID…
How can one track Canvas Media use without having the reports available from Canvas Studio? Checking API endpoints and the Data 2 schema, there do not seem to be dedicated Canvas Media endpoints. Am I missing some? A method I've considered is using the body field of the wiki_pages table, as this contains the html code of…
Hello, I'm trying to utilize an API call to pull completed certificates and was hoping to download and store the certs as a backup. I can successfully run the API call but it will not allow me to view the certificate unless I access the URL while signed into an account where it's "my" cert. Is there a permissions setting…
UI for weekly progression idea that rest in the Schedule tab of the **K-12 UI** of Canvas it's incomplete and I really would not take it and push it into instance but I am going to post it here because in the past people like @James && @robotcars || @Steve_25 have had terrific input in the past... maybe w/their eyes and…