Skip to main content

Get Course Joined Users

This endpoint retrieves the list of joined users to the course identified by {id}.
By default joined users means:

  • user with join_status equal to manager;
  • user with join_status equal to joined.

If you need more or less roles use the param statuses (only creator, manager and joined are valid status for this route).

info

This operation requires the course creator or manager role if the option hide_member_count is active.
If the option hide_member_count is not active and the course privacy is:

  • empty string (draft mode): only managers can see the users that joined the course;
  • open and private: anyone can see the users that joined the course;
  • secret: only invited members can see the users that joined the course.

HTTP Request

GET /api/v2/course/{id}/join/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this course
limitqueryintegerfalseNumber of results to return per page
offsetqueryintegerfalseThe initial index from which to return the results
statusesquerylist(string)¦stringfalseFilter by join_status; default: ["manager", "joined"].
Only creator, manager and joined are valid status for this route

Enumerated Values

ParameterValueDescription
» join_statuscreatorThe creator of the course
» join_statusmanagerThe managers of the course
» join_statusjoinedThe users that joined the course

Example Request

const headers = {
'Accept':'application/json',
'Authorization: Bearer <token>'
};

fetch('/api/v2/course/{id}/join/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» countintegerfalsenoneTotal results count
» nextstring(uri)¦nullfalsenoneNext page url
» previousstring(uri)¦nullfalsenonePrevious page url
» resultslist(User Minimal)falsenoneList of users