That would probably be the easiest as long as you don’t need to keep any of the existing usermanager users.
I don’t know about .net, but you can delete all users from the router by running this command in the console:
/tool user-manager user remove [find]
Does this need to continue to be synchronized as users are added/removed from .net db? Or do you only need to do this synchronization only one time?
If it’s only one time, I would export an excel or text file list of all the users from .net, and then edit the file using find/replace to get it into the format of:
/tool user-manager user add name=userName customer=admin etc...
Then, you can copy/paste the code directly into the router and add the users.
Hi, I need to synchronize the tables periodically , maybe every day.
The code I’m triying to delete all the users is:
mk.Send(“/tool/user-manager/user/remove [find]”, False)
mk.Send(“=customer=admin”, True)
and the response from mikrotik is
!trap=message=no such command!