getPrivacyUnsafeUserEmail method

Future<AccountIdEmailRecord> getPrivacyUnsafeUserEmail(
  1. String accountId
)

Returns a user's email address. This API is only available to apps approved by Atlassian, according to these guidelines.

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

Implementation

Future<AccountIdEmailRecord> getPrivacyUnsafeUserEmail(
    String accountId) async {
  return AccountIdEmailRecord.fromJson(await _client.send(
    'get',
    'wiki/rest/api/user/email',
    queryParameters: {
      'accountId': accountId,
    },
  ));
}