getGroupMembershipsForUser method
Returns the groups that a user is a member of.
Permissions required: Permission to access the Confluence site ('Can use' global permission).
Implementation
Future<GroupArrayWithLinks> getGroupMembershipsForUser(
{required String accountId, int? start, int? limit}) async {
return GroupArrayWithLinks.fromJson(await _client.send(
'get',
'wiki/rest/api/user/memberof',
queryParameters: {
'accountId': accountId,
if (start != null) 'start': '$start',
if (limit != null) 'limit': '$limit',
},
));
}