searchUsersWithHttpInfo method

Future<Response> searchUsersWithHttpInfo(
  1. String tenantId,
  2. String urlId, {
  3. String? usernameStartsWith,
  4. List<String>? mentionGroupIds,
  5. String? sso,
  6. String? searchSection,
})

Performs an HTTP 'GET /user-search/{tenantId}' operation and returns the Response. Parameters:

Implementation

Future<Response> searchUsersWithHttpInfo(String tenantId, String urlId, { String? usernameStartsWith, List<String>? mentionGroupIds, String? sso, String? searchSection, }) async {
  // ignore: prefer_const_declarations
  final path = r'/user-search/{tenantId}'
    .replaceAll('{tenantId}', tenantId);

  // ignore: prefer_final_locals
  Object? postBody;

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

    queryParams.addAll(_queryParams('', 'urlId', urlId));
  if (usernameStartsWith != null) {
    queryParams.addAll(_queryParams('', 'usernameStartsWith', usernameStartsWith));
  }
  if (mentionGroupIds != null) {
    queryParams.addAll(_queryParams('multi', 'mentionGroupIds', mentionGroupIds));
  }
  if (sso != null) {
    queryParams.addAll(_queryParams('', 'sso', sso));
  }
  if (searchSection != null) {
    queryParams.addAll(_queryParams('', 'searchSection', searchSection));
  }

  const contentTypes = <String>[];


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