List the members of a group.

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Returns the members of a learner group, paginated with si and limit. Pass the group id as courseId; use filter=6 for learners or filter=5 for moderators.

Endpoint

get https://{TrainerCentral-API-Domain}/tc/api/v1/trainer/course/{courseId}/courseMembers.json

OAuth Scope

TrainerCentral.courseapi.READCopied!

Headers

tc-orgIdstring(Required)

ID of the academy (orgId).

Example
51517414

Path Parameters

courseIdstring(Required)

ID of the group (its courseId).

Query Parameters

siinteger(Optional)

Start index (0-based). Default 0.

Example
0
limitinteger(Optional)

Number of members to return. Default 10, max 200.

Example
10
Minimum Value :00Copied!
Maximum Value :200200Copied!
searchTextstring(Optional)

Text to search in the member name and email.

Example
Jane
filterinteger(Optional)

Member set. Allowed: 1=All members, 5=Group moderators, 6=Group learners. Default 1.

Example
6

Request Example

cURL
cURL
Java
Python
Deluge
Copied!
curl --request GET \
  --url 'https://trainercentral.zoho.com/tc/api/v1/trainer/course/{courseId}/courseMembers.json?si=0&limit=10&searchText=Jane&filter=6' \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
  --header 'tc-orgId: 51517414'

Response Parameters

courseMembersJSON Array

Group members on this page.

Hide Sub-Attributes
JSON Object
Show Sub-Attributes
courseMembersIdstring

ID of the group membership (courseMemberId).

idstring

Same as courseMembersId.

courseIdstring

ID of the group.

coursestring

Same as courseId.

userIdstring

User ID (zuid) of the member.

orgMemberIdstring

Academy member ID.

orgIdstring

ID of the academy (orgId).

rolestring

Role in the group. Allowed: 0=Group admin, 1=Moderator, 3=Learner.

statusstring

Membership status. Allowed: 0=Active, 10=Invited, 50=Enrolled, 51=Unenrolled.

namestring

Full name of the member.

emailstring

Email of the member; * when hidden from trainers.

imageUrlstring

Profile image URL.

timestring

Last membership change in epoch milliseconds.

invitedTimestring

Invite time in epoch milliseconds.

enrolledTimestring

Enrollment time in epoch milliseconds.

metaJSON Object

Counts for pagination.

Hide Sub-Attributes
membersCountstring

Number of members that match filter and searchText, across all pages.

errorJSON Object

Error details.

Hide Sub-Attributes
codestring

Deprecated numeric error code (for example ST_202). Prefer codeStr; omitted from doc samples.

codeStrstring

Error code name (ShowtimeErrorCode / err_code_str), for example MISSING_PARAMETER.

messagestring

Error message.

Possible Error Codes

HTTP CodeError CodeDescription
500ST_94

INVALID_COURSE - Group not found or deleted. Pass a valid group id. Do not retry unchanged.

ST_102

UNAUTHORISED_ACCESS - The user is not an academy owner, admin, or admin or moderator of this group. Do not retry with the same token.

Response Example

Group learners (filter=6).

200
200
400
500
Copied!
  {
    "courseMembers": [
      {
        "courseMembersId": "3000000000095",
        "id": "3000000000095",
        "courseId": "3000000000070",
        "course": "3000000000070",
        "userId": "51456992",
        "orgMemberId": "3000000000004",
        "role": "3",
        "status": "50",
        "name": "Jane Smith",
        "email": "jane.smith@example.com",
        "time": "1782727568989"
      }
    ],
    "meta": {
      "membersCount": "1"
    }
  }
                
  {
    "error": {
      "code": "string",
      "codeStr": "string",
      "message": "string"
    }
  }
                
500 Request failed; see the error code.
▼ Show full

Rate Limits

Duration2 minutes
Threshold50
Lock Period1 minute

Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.