add user in Terminal/API

hello,
using RB for many years now (RB112, RB532…), but I’m new to User Manager.
I’m writing a programm in c# to control UM, running on a RB433 (will be replaced by a RB1100AHx4 Dude Edition).

List users or profiles …: OK
adding a customer: works fine!!


add user, even in a Terminal: problem!!

/tool user-manager user> a
customer: admin
failure: username is required



ROS 4.60 stable and ROS 461 rc47

grtz
Dirk111

while debugging my program…

it sends this to the RB
Send(“/tool/user-manager/user/add”);
Send(“=customer=admin”);
Send(“=name=” + varName);
Send(“=password=” + varPassw, true);

reading the answer, I get: “!trap=message=unknown parameter !done”

must be the answer on customer: as it was the case in the Terminal (see above)

if your RouterOS version up to 6.17 you should change name to username in this line
Send(“=username=” + varName);

and in activate profile used “numbers” not “user” like previous versions
Send(“/tool/user-manager/user/create-and-activate-profile”);
Send(“=customer=admin”);
Send(“=numbers=” + varName);
Send(“=profile=” + yourprofilename);

thanks for the reply

but: I use ROS 4.60 (or higher)
and even in a Terminal (Winbox or direct RS232 connection) I get, when trying to add an new user:

customer: admin
failure: username is required

I’ve tried al lot of combinations to answer the question customer:…, quotes, usernames…

Does it make sense to try an old version of User Manager???

on old version like 4 . there are no customer with all script on usermanager
you should use subscriber no customer

Hi

PROBLEM SOLVED!!
I also needed the support of Mikrotik Support…

To add a user, you MUST issue the command user manager user ADD USER = “TEST”
and then you can answer “admin” on the question “customer”
and user TEST is created

Thanks everyone!
Dirk111