AnsweredAssumed Answered

Canvas `self` reference in API calls

Question asked by Brian Bennett on Sep 17, 2019
Latest reply on Sep 17, 2019 by Brian Bennett

I'm trying to create a helper application to provide a workaround for students using the Learning Mastery Gradebook. In short, item alignments aren't showing in the Individual View when a student views their grades, so they have no idea what their Outcome progress is. 


If it's a teacher, the user ID is in the URL and can be parsed to make a successful API call to the Outcomes endpoint. In a student account, that ID doesn't exist in the URL. Passing `self` works for some API calls, but it is broken in the Outcome reports endpoint.


So, is there a way to extract the user ID from the `self` keyword if I use some kind of middleman app? The student would be able to launch the page but the work would be done by a worker account. I can't think of a way to get the ID number, though.


Any thoughts?