Skip to main content

Remove a user from a course

DELETE 

/api/courses/:id/roster/:userId

Removes a user from a course roster. Permission is tiered: the shared wrapper admits global admins and course faculty only (TAs and students are rejected up front); the remaining rule (a faculty member may not remove another faculty member) is enforced here (a global admin may). Two safety rules block the removal outright: the user must have no submissions in the course, and a course can't lose its last faculty member.

View source

Request

Responses

Removed; returns how many roster rows were deleted.