Retrieve a list of users in an application
You can retrieve a list of all or certain users in your Sendbird application using an ApplicationUserListQuery instance. The next() method returns a list of User objects which contain information on users within the application.
ApplicationUserListQuery
Using a number of different parameters the ApplicationUserListQuery instance provides, you can retrieve a list of specific users that match the set values in the parameters. Currently the ApplicationUserListQuery instance supports the following parameters.
List of parameters
| Parameter name | Type | Description |
|---|---|---|
userIdsFilter | string[] | Specifies the unique IDs of users you want to retrieve in the filter. |
metaDataKeyFilter | string | Specifies a metadata key to retrieve users with metadata containing an item with the specified key and values. Both |
metaDataValuesFilter | string[] | Specifies the metadata values to retrieve users with metadata containing an item with the specified key and values. Both |
nicknameStartsWithFilter | string | Specifies user nicknames to retrieve users whose nicknames start with the specified value. |
limit | number | Specifies the number of users to return per page. (Default: |
Note: We recommend you set the maximum number of user IDs to
250in theUserID filter. If exceeded, your query may receive anHTTP 414 errorindicating that the submitted request data is longer than the Sendbird server is willing to interpret.