Retrieve a list of users in an application
By using an ApplicationUserListQuery
instance, you can retrieve a list of all or certain users in your Sendbird application. The loadNext()
method returns a list of User
objects which contain information on users within the application.
ApplicationUserListQuery
Using a number of different filters in the ApplicationUserListQuery
instance, you can retrieve a list of specific users that match the values set in the filters. Currently, the ApplicationUserListQuery
instance supports the following filters.
List of filters
Filter property name | Type | Description |
---|---|---|
userIdsFilter | List<String>? | Specifies the unique IDs of users you want to retrieve. Specifying the |
nicknameStartsWithFilter | String? | Specifies the nickname of users you want to retrieve. Specifying the |
metaDataKeyFilter | String? | Specifies the metadata keys of users you want to retrieve. Specifying the |
metaDataValuesFilter | List<String>? | Specifies the metadata values of users you want to retrieve. Specifying the |
Note: We recommend you set the maximum number of user IDs in
userIds
to 250. If exceeded, your query may receiveHTTP 414 error
indicating that the submitted request data is longer than the Sendbird server is willing to interpret.