Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
Found this content helpful? Log in or sign up to leave a like!
I am using Postman to test sending enrollments to Canvas API. I was getting errors at first because I was using the SIS userid and SIS section id for the Post. I got it working using the user_id and course_section_id within Canvas...that are not in my SIS.
My questions are:
1. Is there anyway to use the SIS ID's to enroll users so that I can do it directly from my SIS?
2. If not, how are others pulling the Canvas user_id and section id from the API before enrolling.
Thanks for your help.
There are two ways to use SIS IDs as you describe.
Thanks, James. I reviewed the API documentation which matches your reply as well. I now have it working with SIS IDs...thanks for your help.
James,
Thanks again for your help. As I mentioned, I have the SIS Section ID working for enrollments but now am having issues with the SIS User ID
For example, the form data documentation requires: "enrollment[user_id] = Canvas ID" to enroll a user.
How do I modify the form data so it enrolls by sis.user.id?
I have tried about every combination I can think of but continue to get errors.
Thanks for your help. It is appreciated.
Without testing to make sure, to enroll the user with SIS ID of jdoe525, you should use:
enrollment[user_id]=sis_user_id:jdoe525
When I first started using Canvas, there were some places where SIS IDs were not accepted so I cached the Canvas IDs locally and just refer to those. Since then, things have improved. I noticed that most places I encountered this is where it said id rather than user_id. The name of the property here is user_id, so it should work with the sis_user_id.
If you have tried the above and it doesn't work, then make sure that you can create an enrollment using a Canvas user ID. That will make sure that the rest of the form data is correct and that the real issue is just the SIS ID part and not something else with the request.
Thanks, James. That worked...your statement about making sure the Canvas ID was correct made me go back and make sure my SIS ID was an actual user. It was not...I made sure the SIS ID was for the same test user and it worked. Thanks again for all of your help. It is greatly appreciated.
To participate in the Instructure Community, you need to sign up or log in:
Sign In