Deleted users are automatically excluded from search and query results.
Parameters
This page covers two user-list operations. Choose the operation first, then use the inputs table in each section for the exact SDK call shape.Search users by display name
Use search when the user types a display-name keyword. Search keywords must be at least 3 characters long. When a keyword is provided, the server ranks matching results by search relevance; supported sort options can then control the returned order.Inputs
TypeScript search parameters intentionally do not include
sortBy; use getUsers(...) when you need TypeScript user-list sorting.Special character handling
With display-name sorting, users are sorted alphabetically by their display names using ICU collation for the English locale. This means that special characters such as Ä are treated as variants of A. For example, a sorted list might appear as: adam, Älex, Alice, Arthur, charlie, Kristen.When providing a search keyword, the API performs an exact-match lookup for special characters:
- Searching for “Äli” only returns users whose display name contains “Äli”, such as “Älise”.
- Searching for “Alice” does not return “Älice”.
Query users
UsegetUsers() when you need a paginated user list without a display-name keyword. TypeScript query sorting supports firstCreated and lastCreated; iOS, Android, and Flutter also expose display-name sorting.
Inputs
Deleted users are excluded from query results.
Platform notes
- TypeScript
searchUserByDisplayName(...)starts a live collection observer, but its search params do not exposesortBy. - iOS search and query methods require an
AmityUserSortOption. - Android and Flutter default user search/query sorting to display name when no explicit sort is provided.
- Use pagination controls from the callback, live collection,
PagingData, or FlutterPagingControllerinstead of loading all users at once.
Related topics
Get User Information
Retrieve one user, batch lookup users where supported, or query user collections.
Update User Information
Modify user profile fields.