getUsersByFilter function
- @Deprecated('The API is deprecated due to an update of the GET Users Server API to the V2 version. ' 'Use the `getUsers(Map<String, String> parameters, {RequestPaginator? paginator, RequestSorter? sorter})` function instead.')
- RequestFilter filter
Returns users by the custom filter. Possible filters provided by link https://developers.connectycube.com/server/users?id=parameters-1 For example for getting users by ids you can use the next code snippet:
var ids = [22, 33, 44];
var requestFilter = RequestFilter(
RequestFieldType.NUMBER, "id", QueryRule.IN, ids.join(","));
getUsersByFilter(requestFilter).then((response) {
var users = response?.items;
});
Implementation
@Deprecated(
'The API is deprecated due to an update of the GET Users Server API to the V2 version. '
'Use the `getUsers(Map<String, String> parameters, {RequestPaginator? paginator, RequestSorter? sorter})` function instead.')
Future<PagedResult<CubeUser>?> getUsersByFilter(RequestFilter filter) {
return GetUsersQuery.byFilter(filter).perform();
}