getCurrentUser method
Returns the currently logged-in user. This includes information about the user, like the display name, userKey, account ID, profile picture, and more.
Permissions required: Permission to access the Confluence site ('Can use' global permission).
Implementation
Future<User> getCurrentUser({List<String>? expand}) async {
return User.fromJson(await _client.send(
'get',
'wiki/rest/api/user/current',
queryParameters: {
if (expand != null) 'expand': expand.map((e) => e).join(','),
},
));
}