I am a router os noob, I searched the forums pretty extensively and I wasn’t able to find a definitive answer to the following question:
Is there any way to change a Usermanager user’s profile through the command line or via an api?
I am looking for a way to change customers that are behind on their bill to a different profile. I can’t find a way to do it.
Is there something that I am missing? Or is there some kind of workaround that doesn’t create a new profile and activates it?
Hi richeyrobert,
yes you can modify values in the user-manager, via CLI at least; not sure about API.
I’ve done an example script here that applies a rate-limit to a user account based on the credit price. Of course this is just per user however this should give you a good idea of how to get in and make modifications to other things either directly via the CLI or using an automated script.
Remember too, if you can’t do something directly via the API there’s always the option of using the API to trigger a local script to do it for you.
http://www.mikrotik-routeros.com/2011/01/adding-automatic-rate-limits-to-user-manager-accounts/