getPrivacyUnsafeUserEmailBulk method

Future<AccountIdEmailRecordArray> getPrivacyUnsafeUserEmailBulk(
  1. List<String> accountId
)

Returns user email addresses for a set of accountIds. This API is only available to apps approved by Atlassian, according to these guidelines.

Any accounts which are not available will not be included in the result.

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

Implementation

Future<AccountIdEmailRecordArray> getPrivacyUnsafeUserEmailBulk(
    List<String> accountId) async {
  return AccountIdEmailRecordArray.fromJson(await _client.send(
    'get',
    'wiki/rest/api/user/email/bulk',
    queryParameters: {
      'accountId': accountId.map((e) => e).join(','),
    },
  ));
}