getBulkUserLookup method

Future<BulkUserLookupArray> getBulkUserLookup({
  1. required String accountId,
  2. List<String>? expand,
  3. int? limit,
})

Returns user details for the ids provided in request.

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

Implementation

Future<BulkUserLookupArray> getBulkUserLookup(
    {required String accountId, List<String>? expand, int? limit}) async {
  return BulkUserLookupArray.fromJson(await _client.send(
    'get',
    'wiki/rest/api/user/bulk',
    queryParameters: {
      'accountId': accountId,
      if (expand != null) 'expand': expand.map((e) => e).join(','),
      if (limit != null) 'limit': '$limit',
    },
  ));
}