bulkGetUsers method

Future<PageBeanUser> bulkGetUsers({
  1. int? startAt,
  2. int? maxResults,
  3. List<String>? username,
  4. List<String>? key,
  5. required List<String> accountId,
})

Returns a paginated list of the users specified by one or more account IDs.

Permissions required: Permission to access Jira.

Implementation

Future<PageBeanUser> bulkGetUsers(
    {int? startAt,
    int? maxResults,
    List<String>? username,
    List<String>? key,
    required List<String> accountId}) async {
  return PageBeanUser.fromJson(await _client.send(
    'get',
    'rest/api/3/user/bulk',
    queryParameters: {
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
      if (username != null) 'username': username.map((e) => e).join(','),
      if (key != null) 'key': key.map((e) => e).join(','),
      'accountId': accountId.map((e) => e).join(','),
    },
  ));
}