searchUsersWithHttpInfo method

Future<Response> searchUsersWithHttpInfo(
  1. MmSearchUsersRequest mmSearchUsersRequest
)

Search users

Get a list of users based on search criteria provided in the request body. Searches are typically done against username, full name, nickname and email unless otherwise configured by the server. ##### Permissions Requires an active session and read_channel and/or view_team permissions for any channels or teams specified in the request body.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> searchUsersWithHttpInfo(
  MmSearchUsersRequest mmSearchUsersRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/users/search';

  // ignore: prefer_final_locals
  Object? postBody = mmSearchUsersRequest;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}