teamMembersMinusGroupMembers method

Future<void> teamMembersMinusGroupMembers(
  1. String teamId,
  2. String groupIds, {
  3. int? page,
  4. int? perPage,
})

Team members minus group members.

Get the set of users who are members of the team minus the set of users who are members of the given groups. Each user object contains an array of group objects representing the group memberships for that user. Each user object contains the boolean fields scheme_guest, scheme_user, and scheme_admin representing the roles that user has for the given team. ##### Permissions Must have manage_system permission. Minimum server version: 5.14

Parameters:

  • String teamId (required): Team GUID

  • String groupIds (required): A comma-separated list of group ids.

  • int page: The page to select.

  • int perPage: The number of users per page.

Implementation

Future<void> teamMembersMinusGroupMembers(
  String teamId,
  String groupIds, {
  int? page,
  int? perPage,
}) async {
  final response = await teamMembersMinusGroupMembersWithHttpInfo(
    teamId,
    groupIds,
    page: page,
    perPage: perPage,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}