AnsweredAssumed Answered

Enrolling a not existing user to a course via API

Question asked by Jonas Karlsson on Feb 15, 2018
Latest reply on Feb 19, 2018 by Colin Murtaugh



I am a newbie to canvas but I fairly well knowledgeable with REST APIs.


I have a user that have the Teacher and TeacherEnrollment "roles" in a course.

In the Web UI I can "add and enroll a user" by clicking "+people" and simply following the wizard and add a email adress that does not exist in the system.


While, I can enroll already created users into the course via the API (Enrollments - Canvas LMS REST API Documentation).

I get a "permission denied" when try to create a new user (Users - Canvas LMS REST API Documentation).


I am a bit stumped what I a doing wrong as I seams to have the correct rights to "add a user" when I am using the Web UI. Maybe I am getting the canvas nomenclature wrong and what I do via the Web UI is not adding a user at all but does something else. I somehow suspect this as when I "add the user" via the web ui, the user does not show up among the other users in the account but only shows up in the course (as pending, the user does not have a valid email).