Skip to main content

Get All Users

Retrieve all users with enrollment statistics, educator status, and course creation counts.

Authentication

string
required
Bearer token with admin role required

Response

boolean
Indicates if the request was successful
array
Array of users sorted by registration date (newest first)

Notes

  • Users are sorted by registration date in descending order (newest first)
  • The isEducator field is fetched from Clerk’s public metadata
  • Regular students will have isEducator: false and coursesCreated: 0
  • The endpoint queries up to 500 users from Clerk for role metadata
  • enrolledCount represents active enrollments in courses
  • coursesCreated counts all courses created by the educator, regardless of publication status