getGroupMembersByGroupId method

Future<UserArray> getGroupMembersByGroupId({
  1. required String groupId,
  2. int? start,
  3. int? limit,
  4. bool? shouldReturnTotalSize,
  5. List<String>? expand,
})

Returns the users that are members of a group.

Use updated Get group API

Permissions required: Permission to access the Confluence site ('Can use' global permission).

Implementation

Future<UserArray> getGroupMembersByGroupId(
    {required String groupId,
    int? start,
    int? limit,
    bool? shouldReturnTotalSize,
    List<String>? expand}) async {
  return UserArray.fromJson(await _client.send(
    'get',
    'wiki/rest/api/group/{groupId}/membersByGroupId',
    pathParameters: {
      'groupId': groupId,
    },
    queryParameters: {
      if (start != null) 'start': '$start',
      if (limit != null) 'limit': '$limit',
      if (shouldReturnTotalSize != null)
        'shouldReturnTotalSize': '$shouldReturnTotalSize',
      if (expand != null) 'expand': expand.map((e) => e).join(','),
    },
  ));
}