getAnonymousUser method

Future<UserAnonymous> getAnonymousUser({
  1. List<String>? expand,
})

Returns information about how anonymous users are represented, like the profile picture and display name.

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

Implementation

Future<UserAnonymous> getAnonymousUser({List<String>? expand}) async {
  return UserAnonymous.fromJson(await _client.send(
    'get',
    'wiki/rest/api/user/anonymous',
    queryParameters: {
      if (expand != null) 'expand': expand.map((e) => e).join(','),
    },
  ));
}