searchUserAccessTokensWithHttpInfo method

Future<Response> searchUserAccessTokensWithHttpInfo(
  1. MmSearchUserAccessTokensRequest mmSearchUserAccessTokensRequest
)

Search tokens

Get a list of tokens based on search criteria provided in the request body. Searches are done against the token id, user id and username. Minimum server version: 4.7 ##### Permissions Must have manage_system permission.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> searchUserAccessTokensWithHttpInfo(
  MmSearchUserAccessTokensRequest mmSearchUserAccessTokensRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/users/tokens/search';

  // ignore: prefer_final_locals
  Object? postBody = mmSearchUserAccessTokensRequest;

  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,
  );
}