getGroups method

Future<GroupArrayWithLinks> getGroups({
  1. int? start,
  2. int? limit,
  3. String? accessType,
})

Returns all user groups. The returned groups are ordered alphabetically in ascending order by group name.

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

Implementation

Future<GroupArrayWithLinks> getGroups(
    {int? start, int? limit, String? accessType}) async {
  return GroupArrayWithLinks.fromJson(await _client.send(
    'get',
    'wiki/rest/api/group',
    queryParameters: {
      if (start != null) 'start': '$start',
      if (limit != null) 'limit': '$limit',
      if (accessType != null) 'accessType': accessType,
    },
  ));
}