Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
Found this content helpful? Log in or sign up to leave a like!
I made the following call using a teacher level token:
https://myschool.instructure.com/api/v1/accounts/88824/terms?access_token=tokenvalue
This is what was returned:
{"status":"unauthorized","errors":[{"message":"user not authorized to perform that action"}]}
I am aware that in the past many API calls were scoped to only allow admins to call them, even if it was valuable to make the information available at a teacher or student level, BUT, there was an effort fix this that was successful and I haven't run into that problem in a while.
Is this an example where this API was not updated to the more flexible scoping? Or is there a reason it is blocked? Or am I just doing it wrong?
I hope to get this sorted out soon. I have recently started working with K-12 clients that use terms extensively and need to get assignments and submissions by term so I can filter data appropriately.
Thanks!
The docs say "For all actions, the specified account must be a root account and the caller must have permission to manage the account ".
So it looks like you still need to be an account admin to get terms.
Should have also mentioned that I did try as an admin/non-admin. Okay for admin, same error as you for non-admin.
Ah, that will teach me to read the notes
Canvas developers, is there any chance we can alter this API like the others so that it does not require admin privileges for read only portions of the call? Otherwise, it is not possible for teachers and students to access term data outside of the drop down in the gradebook or in settings, i.e., in an LTI. I want to use this information to make a dashboard showing progress on assignments, filtered to the current term.
It seems odd to me that a teacher can see and manipulate term in the gradebook but the teacher token can not see that data. Maybe this is an oversight?
To participate in the Instructure Community, you need to sign up or log in:
Sign In