Search users by username, first name, last name, and full name across all list endpoints.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-18 12:28:21 +05:00
parent fb65d35d3c
commit 71479f4355
6 changed files with 88 additions and 29 deletions

View File

@@ -4655,7 +4655,11 @@ paths:
get:
description: Returns paginated users with role user, with optional filters
parameters:
- description: Filter by username
- description: Search by username, first name, or last name
in: query
name: search
type: string
- description: Alias for search
in: query
name: username
type: string
@@ -4827,9 +4831,13 @@ paths:
- user
/users/clients:
get:
description: Returns paginated users from the users table with role user
description: Returns paginated client users (role user, not assigned to any branch)
parameters:
- description: Filter by username
- description: Search by username, first name, or last name
in: query
name: search
type: string
- description: Alias for search
in: query
name: username
type: string
@@ -4868,7 +4876,11 @@ paths:
description: Returns paginated users assigned to branches (from branch_user),
including each user's branches.
parameters:
- description: Filter by username
- description: Search by username, first name, or last name
in: query
name: search
type: string
- description: Alias for search
in: query
name: username
type: string