#38 [Admin Panel] User Management API - List Users Endpoint

closed critical Created 2025-11-27 07:11 · Updated 2025-11-27 08:27

Description

Edit
Implement GET /api/v1/admin/users endpoint to list all users with pagination, filtering, and search. **API Specification:** - Endpoint: GET /api/v1/admin/users - Permission Required: manage_users - Query Parameters: - page (int, default: 1) - per_page (int, default: 20, max: 100) - search (string) - search email, display_name - role (string) - filter by role - is_active (bool) - filter by status - sort_by (string) - email, created_at, last_login - sort_order (string) - asc, desc - Response: {data: users[], pagination: {page, per_page, total, total_pages}} **Requirements:** - Efficient SQL query with proper indexing - Only return users within current tenant - Include user roles in response - Include last_login timestamp - Support multiple role filters (comma-separated) **Response Fields per User:** - user_id, email, display_name, roles[], is_active, created_at, last_login, created_by **IMPORTANT:** Implement with ultra attention to details and correctness. **BEFORE CLOSING:** Take screenshot showing paginated user list. Add comment summarizing implementation.

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...