Get a roster entry
GET/api/courses/:id/roster/:userId
Returns one roster entry (with the user's profile) plus the viewer's own course role and an viewerIsAdmin flag, so the UI can decide which actions to offer. Access is tiered: the caller must be a member of the course (the wrapper enforces this), and a non-staff member may only read their OWN entry; course staff (faculty/TA) and admins may read anyone's. userId may be the literal "me" to target the caller.
Request
Responses
- 200
- 401
- 403
- 404
- 500
The roster entry, the viewer's course role, and viewerIsAdmin.
Not signed in.
Not a course member, or a non-staff member reading someone else's entry.
No roster entry for that user in this course.
Server error.