The Instructure Community is fully available, including guides, release notes, forums, and groups. If some styling still looks unusual, clear your cache and cookies.
Found this content helpful? Log in or sign up to leave a like!
I am using /api/v1/users/3282 API. But it gives different values for access_token of admin and access_token of instructor.
I want to retrieve the sis_login_id of instructor user.
Response when token is Instructors:
{
"id": 3282,
"name": "Shalu Yadav",
"sortable_name": "Yadav, Shalu",
"short_name": "Shalu Yadav",
"avatar_url": "https:///images/thumbnails/204235/pSznz1ykIbNHM3hMa2Ecj263QZ1U8K1MOofpTESz",
"locale": null,
"permissions": {
"can_update_name": true,
"can_update_avatar": true
}
}
Response when token is Admin’s :
{"id":3282,
"name":"Shalu Yadav",
"sortable_name":"Yadav, Shalu",
"short_name":"Shalu Yadav",
"sis_user_id":"919509883",
"integration_id":"461712",
"sis_login_id":"s525138",
"sis_import_id":332,
"login_id":"s525138",
"avatar_url":"https:///images/thumbnails/204235/pSznz1ykIbNHM3hMa2Ecj263QZ1U8K1MOofpTESz",
"locale":null,
"permissions":{
"can_update_name":true,
"can_update_avatar":true
}
}
Can anyone suggest me what to do?
Should I use some other API?
Thank you in advance!
Hello Shalu, I think you're using the correct API endpoint, but this sounds like a permissions issue.
Your account level permissions may not have the 'read SIS data' enabled for the instructor role. Check this document and try tweaking the instructor role permissions to see if that doesn't get you what you need.
Thank you very much for taking the time for your reply.
I have checked 'read SIS data' permissions and it is enabled for the teacher role at both account and sub-account level. But I am still not able to fetch the sis_login_id using instructor token .
Any other suggestions would be appreciated?
@s525138 As an admin, if I look at a course roster I can see the student login id.
If I masquerade as the instructor for the course, I cannot see the login id.
I have also proven this out using the API.
Our teacher role does have "Read SIS Data" enabled, so that's not it.
Are you sure an instructor has the privs to see the student login id?
Have you asked your CSM or Canvas Support about this?
Hello Garth Egbert,
I have asked to Canvas Support and they told me to use the Login API instead of the users API. As users API gives different response for admin and faculty.
Issue is fixed now.
Thanks a lot for guiding.
Awsome. I'll play with that API call as well, thanks for asking the question.
To 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