Skip to main content
The User Management interface provides administrators with a comprehensive view of all platform users, including students and educators.

Overview

Administrators can view detailed information about all registered users, including their enrollment activity, course creation statistics, and account details.

User Types

Students

Users who enroll in and take courses

Educators

Users with approved educator status who can create courses

Features

Tab Navigation

Switch between user types using the tab interface:
View all users who are enrolled as students. Displays enrollment counts and account details.

Search Functionality

Search across user names and email addresses in real-time
The search bar filters users dynamically as you type, matching:
  • User full names (case-insensitive)
  • Email addresses (case-insensitive)

User Information Display

Each user entry shows the following information:

Student View

Educator View

API Integration

GET /api/admin/users

Fetches all users with enhanced statistics:
Requires admin authentication via Bearer token in the Authorization header

Data Processing

Role Determination

The backend determines educator status by querying Clerk’s user metadata:

Statistics Aggregation

1

Enrollment Count

Calculated from the enrolledCourses array length in the User model
2

Courses Created

Aggregated by grouping courses by educatorId and counting documents
3

User Sorting

All users are sorted by createdAt in descending order (newest first)

User Interface Features

Avatar Display

Displays the user’s profile image in a circular avatar

Responsive Design

Mobile

Shows only name, primary metric, and joined date

Desktop

Displays all columns including email addresses and full statistics

Dark Mode

Full dark mode support with:
  • Adjusted background colors
  • Border color variations
  • Text color contrast optimization

Empty States

When no users match the search criteria, a helpful message is displayed:
  • “No students match your search”
  • “No educators match your search”
  • “No students yet” (when no search is active)
  • “No educators yet” (when no search is active)

Summary Statistics

The page header displays aggregate counts:
This provides quick insight into the platform’s user distribution.

Implementation Notes

Performance Optimization

The user list is fetched once on component mount and filtered client-side:

Date Formatting

Joined dates are formatted using the Indian locale:
Use the search functionality to quickly locate specific users by name or email during support inquiries.