hi there ,
i'm looking for script to add bulk of users to UserManager , i know how to add single user and assign profile to it .
any suggestions
You're going to have to provide more details on what you're looking for and what your starting with...currently i want to use simple ssh
You're going to have to provide more details on what you're looking for and what your starting with...currently i want to use simple ssh
i.e.
- what version of RouterOS?
RouterOS V6.49.7
- is user manager already setup and working for users, and ONLY bulk add is needed?
just bulk of users , all things are configured and worked fine
- do you want user manager to generate users (i.e. /user-manager/user add-batch-users)? or... you already have some list of users (like CSV) you want to add in bulk?
I want user manger to generate bulk of users not from csv
- do you want it run on RouterOS, or use ssh from another PC?
from winbox - etc...
Good evening, I'm currently looking to use the "add-batch-user" function in mikrotik Ros v7.18 (CHR) user-man to generate users? with curl, windows powershell, or using Postman. Can you show me an example? The PUT method only works on http://ip-router/rest/user-manager/user not on http://ip-router/rest/user-manager/user/add-batch-user and POST of http://ip-router/rest/user-manager/user/ result an error of bad command. Thank youHave you consider using the api ?
With curl (Linux/Windows) for example, or with powershell with cmdlet ´Invoke-WebRequest´.
In powershell you have to use curl.exe to get curl command, so you don't get the powershell alias to cmdlet ´Invoke-WebRequest´.
Using like a csv file for example.
There is no batch-add-user AFAIK in V6 — but I'm not the expert on UM under V6.- what version of RouterOS?
RouterOS V6.49.7
The PUT method only works on http://ip-router/rest/user-manager/user not on http://ip-router/rest/user-manager/user/add-batch-user and POST of http://ip-router/rest/user-manager/user/ result an error of bad command. Thank you
curl -k 'https://192.168.88.1/rest/user-manager/user/add-batch-users' --json `jo number-of-users=1 username-length=8` --user adminusernmame:somepassword