Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
Found this content helpful? Log in or sign up to leave a like!
For years we have been using the API call:
to get enrollment information for a canvas orientation course that includes the final score. We need the final score of the class to signal the activation of regular courses for the student. Since June, 2024, this call is failing with the message:
{"status":"unauthenticated","errors":[{"message":"user authorization required"}]}
My question is - what has changed? Is the call failing or is there a setting in the configuration somewhere that got flipped to disallow this access?
Any help would be greatly appreciated ( asides from the "look at the manual" which has been less that helpful so far ).
Thanks! KDB
Hi,
Based on the error message it sounds like your access token may be expired or invalid. Was the account associated with the token deleted? Is the token expired? Does the account the token is associated with have the right permissions?
I would try to generate a new access token to see if that solves the problem.
Hello Jenny,
That was the first thing I tried with no success.
Thanks for the suggestion!
KB
Hi @JennyDruckrey ,
That API call works fine for me in my instance. It definitely sounds like your token is not being processed. I notice in your example URL, you have the access_token after a semicolon. Is that how you're actually sending it? I'm not 100% sure if that's the right format (pretty sure it should be & instead of ; to add the second parameter), but I know including the access_token in the URL is generally discouraged and instead if should be included as part of your header instead.
Hope maybe this will help!
-Chris
To participate in the Instructure Community, you need to sign up or log in:
Sign In