addUserToGroupByGroupId method

Future<void> addUserToGroupByGroupId({
  1. required String groupId,
  2. required AccountId body,
})

Adds a user as a member in a group represented by its groupId

Permissions required: User must be a site admin.

Implementation

Future<void> addUserToGroupByGroupId(
    {required String groupId, required AccountId body}) async {
  await _client.send(
    'post',
    'wiki/rest/api/group/userByGroupId',
    queryParameters: {
      'groupId': groupId,
    },
    body: body.toJson(),
  );
}