The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
Dear community, I am new to Canvas and its API.
As many others here, I would like to be able to disable and enable my users temporarily. AFAIK there is no direct API call for this so my idea is the following:
- Search user by its SIS ID (which is identical to the email address in my case)
- Get the list of logins for the user (I only give one login for my users)
- Call the edit login API (https://canvas.instructure.com/doc/api/logins.html#method.pseudonyms.update) and set "workflow_state": "suspended". If I understand well, this would disable user login.
Would this work? Does this method have any disadvantages over the others?
P.S.: It would look stg like this using the Canvasapi Python package:
=============================================
Thx,
Zoltán
Did this code actually work?
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.