getUserByIds, and getUsers() when you need a sorted list instead of a fixed set of IDs.
iOS and TypeScript expose live-object or live-collection wrappers for user observation. Android uses
Flowable<T> for the same operations, while Flutter returns Future<AmityUser> for getUser(userId) and query builders for paginated collections.Parameters
This page covers three user-read operations. Use this table to choose the operation first, then use the inputs table in each section for the exact SDK call shape.Get a single user
Use the single-user API when your app already knows the user ID and needs the latest profile details for that specific user. The examples below show the native return shape for each SDK.Inputs
Get multiple users by ID
Use batch lookup when your app already has a fixed set of user IDs and needs those profiles together. This API is available on TypeScript and Android. For browse flows, use the query operation below.Inputs
Query users
UsegetUsers() when you need a sorted, paginated user list for browse flows such as user directories, member pickers, or moderation tools. On TypeScript, the live collection callback also exposes hasNextPage and onNextPage when more results are available.
Inputs
Platform notes
getUserByIds(userIds)is public on TypeScript and Android, but not on iOS or Flutter.- TypeScript
getUser(...)andgetUsers(...)start live observers and return unsubscriber functions when your screen no longer needs updates. - Android uses
Flowable<AmityUser>for single-user observation andFlowable<List<AmityUser>>for batch lookup. - Flutter
getUser(userId)is a one-timeFuture<AmityUser>. If you need stream-based observation there, useAmityCoreClient.newUserRepository().live.getUser(userId).
Related topics
Search and Query Users
Search users by display name and query user collections.
Update User Information
Update the authenticated user’s profile data.