Community discussions

MikroTik App
 
Aymen1986
newbie
Topic Author
Posts: 29
Joined: Thu Jul 12, 2018 5:15 pm

Adding users using script

Tue Jan 04, 2022 1:51 pm

Hey there ..
I would like to ask a help in create users in USERMAN with profile using script
i tried a script but without adding profile limit to users
/tool userman user add username=test password=111 customer=admin
 
User avatar
baypierre
just joined
Posts: 1
Joined: Sat Jun 05, 2021 7:27 pm

Re: Adding users using script

Wed Jan 05, 2022 5:14 pm

We assume your profile already exist and profile name =24H.
You need to execute the following two commands :
/tool user-manager user add customer=admin disabled=no username=333333 password=222222 shared-users=1;
/tool user-manager user create-and-activate-profile customer=admin profile=24H numbers=333333;

The first command will create username and password , but without profile
the second command will activate user with profile name 24H.
Note that numbers=username you want to change profile.
 
SimonAngatia
just joined
Posts: 5
Joined: Sat Apr 09, 2022 7:43 am

Re: Adding users using script

Thu May 05, 2022 11:29 am

We assume your profile already exist and profile name =24H.
You need to execute the following two commands :
/tool user-manager user add customer=admin disabled=no username=333333 password=222222 shared-users=1;
/tool user-manager user create-and-activate-profile customer=admin profile=24H numbers=333333;

The first command will create username and password , but without profile
the second command will activate user with profile name 24H.
Note that numbers=username you want to change profile.
Thank you so much! It really helped me, a newbie. I would like to ask if you can help me know how to add user profile with limitations and how to disable users.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Adding users using script

Thu May 05, 2022 4:01 pm

numbers=333333 ???

Who is online

Users browsing this forum: No registered users and 6 guests