Found this content helpful? Log in or sign up to leave a like!

Getting student's SIS id from Canvas api

curtisvo
Community Member

Hi,

I'm writing a bit of custom JS to add to our Canvas theme in order to interact with some web services we've got running. 

To get it working correctly I need the user's SIS id, which I was getting from the api (api/v1/users/self/). this seemed to be working fine, but I've just noticed the "sis_user_id" is not being included in the response when the user is not an admin. As an admin I can see it for "self" and also for the students, but their "self" calls don't include it.

I'm guessing this is permission based but can't seem to find a place to allow it. Admins have "SIS Data - read" in the Account Roles. I've tried permitting it for the student Course Role, but I think that's only giving me the course sis id but not for the user. 

Any ideas would be greatly appreciated !

Labels (1)