I have the following function to activate a Profile for a registered user using the RouterOS php library
public function activateProfile($username)
{
$activationQuery = new Query(
'/tool/user-manager/user/create-and-activate-profile',
[
'=user=' . $username,
'=customer=admin',
'=profile=profile1',
]
);
$response = $this->query($activationQuery)->read(false);
print("Activating Profile...");
print_r($response);
}
But I keep getting the error message below
Activating Profile...Array ( [0] => !trap [1] => =message=no such command [2] => !done )