Community discussions

 
adminradi
just joined
Topic Author
Posts: 1
Joined: Thu Oct 26, 2017 12:26 pm

API MIkrotik

Thu Oct 26, 2017 12:45 pm

hello, i have probblem
how to remove actual profile use php api mikrotik. i have profile success to create and active profile for user in usermanager
but i not remove active profile..
tank's you for answer
How to script remove actual profile with php api mikrotik
Screenshot_31.png
You do not have the required permissions to view the files attached to this post.
 
User avatar
ahmedalmi
Frequent Visitor
Frequent Visitor
Posts: 77
Joined: Sat Sep 13, 2014 5:52 pm
Location: sana'a yemen
Contact:

Re: API MIkrotik

Tue Oct 31, 2017 1:30 am

there is no script to do this . just by user manager web
but you can remove the user then add new with your new profile
 
User avatar
ADahi
Member Candidate
Member Candidate
Posts: 217
Joined: Thu Sep 21, 2017 7:16 pm
Location: Iraq, Ninavah
Contact:

Re: API MIkrotik

Tue Dec 05, 2017 8:25 am

via Script/CLI
suppose username is "111"
suppose profile is TRIAL

To remove user profiles try this
/tool user-manager user clear-profiles numbers=[find username="111"]; 


To add profile to user try this
/tool user-manager user create-and-activate-profile profile=TRIAL customer=admin numbers=[find username="111"]; 


Best Regards
 
User avatar
sirdash
just joined
Posts: 2
Joined: Sat Nov 05, 2011 8:14 am
Location: Azarbaican

Re: API MIkrotik

Sat Aug 03, 2019 12:26 am

via Script/CLI
suppose username is "111"
suppose profile is TRIAL

To remove user profiles try this
/tool user-manager user clear-profiles numbers=[find username="111"]; 


To add profile to user try this
/tool user-manager user create-and-activate-profile profile=TRIAL customer=admin numbers=[find username="111"]; 


Best Regards
hello
this work for me
but a question
i have 3 profile but i can active a profile for user . why?
=-=-=-=-=-=-=
Past is history
Future is Secret
Gift is Now

=-=-=-=-=-=-=

Who is online

Users browsing this forum: No registered users and 7 guests