teamMembersMinusGroupMembersWithHttpInfo method
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
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> teamMembersMinusGroupMembersWithHttpInfo(
String teamId,
String groupIds, {
int? page,
int? perPage,
}) async {
// ignore: prefer_const_declarations
final path = r'/teams/{team_id}/members_minus_group_members'.replaceAll('{team_id}', teamId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'group_ids', groupIds));
if (page != null) {
queryParams.addAll(_queryParams('', 'page', page));
}
if (perPage != null) {
queryParams.addAll(_queryParams('', 'per_page', perPage));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}