bulkGetUsersMigration method

Future<List<UserMigrationBean>> bulkGetUsersMigration({
  1. int? startAt,
  2. int? maxResults,
  3. List<String>? username,
  4. List<String>? key,
})

Returns the account IDs for the users specified in the key or username parameters. Note that multiple key or username parameters can be specified.

Permissions required: Permission to access Jira.

Implementation

Future<List<UserMigrationBean>> bulkGetUsersMigration(
    {int? startAt,
    int? maxResults,
    List<String>? username,
    List<String>? key}) async {
  return (await _client.send(
    'get',
    'rest/api/3/user/bulk/migration',
    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(','),
    },
  ) as List<Object?>)
      .map((i) =>
          UserMigrationBean.fromJson(i as Map<String, Object?>? ?? const {}))
      .toList();
}