Skip to content

Conversation

Ermegilius
Copy link
Contributor

This pull request introduces a new endpoint for retrieving a simplified, paginated, and ordered list of users, showing only their names and emails. This feature is restricted to tenant admins and super admins, and includes support for searching, ordering, and pagination.

New endpoint for ordered user listing:

  • Added the getAllOrderedUsersList method to UserController, exposing a new GET /ordered-list endpoint for tenant and super admins to fetch users with only name and email fields.

Service logic for user list retrieval:

  • Implemented the getAllOrderedUsersList method in UserService, which:
    • Queries the user_profiles table for id, full_name, and email.
    • Supports searching by email or name, ordering by a specified column, and paginating results.
    • Returns the user data and pagination metadata.

Copy link

supabase bot commented Sep 4, 2025

This pull request has been ignored for the connected project rcbddkhvysexkvgqpcud because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@maria-aluko maria-aluko merged commit e8634c6 into develop Sep 5, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants