Skip to main content

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.

View source

Request

Responses

The roster entry, the viewer's course role, and viewerIsAdmin.