In menus where there’s a name, you don’t need to find an ID. You can use the name instead. This is certainly the case with the user manager’s “user” menu, so f.e.
In menus where there’s no name, you can use the “print” command to get a list of all IDs in a menu. You can add a query to it to find a specific item’s ID, and you can add the “.proplist” argument to limit the returned properties to just the ID, e.g.
i am try to add user form visual basic API from above code. but result of the above code is unknown parameter. but if am i use following code i can create user successfully. any one can help me..?
actually i want to send following win box terminal code from visual basic
add customer=admin username=name passwor
d=password;create-and-activate-profile name customer=admin profile=general
mikrotik.Send(“/tool/user-manager/user/create-and-activate-profile”);
mikrotik.Send(“=numbers=user1”);
mikrotik.Send(“=customer=admin”);
mikrotik.Send(“=profile=1Mbps”,true );
this is not assigning any profile
I am using the Java api to connect to my Mikrotik and change the users password. I can connect to the router but not run the command. I have tried multiple different ways and tried to learn how to write the commands in the api but without any luck. Is anyone willing to help me figure out how to write the code?