Retrieve a list of users in an application
By using an SbApplicationUserListQuery
instance, you can retrieve a list of all or certain users in your Sendbird application. The LoadNextPage()
method returns a list of SbUser
objects which contain information on users within the application.
SbApplicationUserListQuery
Using a number of different filters in the SbApplicationUserListQuery
instance, you can retrieve a list of specific users that match the values set in the filters. Currently, the SbApplicationUserListQuery
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.