getTeamMembersForUserWithHttpInfo method

Future<Response> getTeamMembersForUserWithHttpInfo(
  1. String userId
)

Get team members for a user

Get a list of team members for a user. Useful for getting the ids of teams the user is on and the roles they have in those teams. ##### Permissions Must be logged in as the user or have the edit_other_users permission.

Note: This method returns the HTTP Response.

Parameters:

  • String userId (required): User GUID

Implementation

Future<Response> getTeamMembersForUserWithHttpInfo(
  String userId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/users/{user_id}/teams/members'.replaceAll('{user_id}', userId);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];

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