Page 1 of 1

Add new user via CLI/API version 5 not working

Posted: Tue Apr 05, 2011 7:02 pm
by santababa
To add new user in
In UM version 4.17: "add name=00:23:8B:11:13:01 subscriber=admin add-credit=1day"
works great! :)


in UM version 5: "add name=00:23:8B:11:13:01 customer=admin"
FAILED!! :?


I get "no profile" error when client try to login. I tried "add-credit=1day", "profile=1day" and "add-profile=1day" but non of them works with the CLI

So, how do you add new user in UM version 5 via CLI/API?

Thanks,
Sans.

Re: Add new user via CLI/API version 5 not working

Posted: Thu Apr 07, 2011 8:22 pm
by santababa
Anyone have any clue what is the work around for the new version of UM to add a new user that actually work under CLI or API?

Is new version of UM ready for prime time or we are still on v4.17?

Thanks,
Sans

Re: Add new user via CLI/API version 5 not working - Update

Posted: Fri Apr 08, 2011 3:42 pm
by santababa
Got respond from MT support, "Currently it is not possible to assign profile by CLI"

I will update the post when I get new updates.

Thanks,
Sans

Re: Add new user via CLI/API version 5 not working

Posted: Tue Apr 12, 2011 7:26 pm
by webasdf
I seem to be experiencing the same. In version 4, /tool user-manager user gave me this when adding/modifying users:

<numbers> -- List of item numbers
add-credit --
caller-id --
comment -- Short description of the item
disabled -- Defines whether item is ignored or used
discount --
download-limit --
email --
first-name --
group-name --
ip-address --
last-name --
location --
name --
password --
phone --
pool-name --
random-password --
rate-limit --
reg-key --
registration-date --
subscriber --
transfer-limit --
upload-limit --
uptime-limit --
username --


Now in version 5, I only get:
Change properties of one or several items.

<numbers> -- List of item numbers
caller-id --
comment -- Short description of the item
customer --
disabled -- Defines whether item is ignored or used
email --
first-name --
ip-address --
last-name --
location --
name --
password --
phone --
random-password --
reg-key --
registration-date --
shared-users --
username --

Missing rate-limit and group-name...and probably others. :? Those are the properties I need in CLI and API please. Can't upgrade to v5 until I can set these.

Re: Add new user via CLI/API version 5 not working

Posted: Sat Aug 20, 2011 12:21 am
by stek
MT please tell us when version 5.x will be able to assign profile to use in CLI/API.

regards
Stefano

Re: Add new user via CLI/API version 5 not working

Posted: Tue Aug 23, 2011 10:21 am
by UGP2
i have this problem too.

Re: Add new user via CLI/API version 5 not working

Posted: Tue Aug 23, 2011 9:58 pm
by santababa
Is there any way we can add user automatically without using the GUI manually? We are trying to decide if we should use Mikrotik solution to roll out a big hotspot project. We are not able to use the Usermanager built-in paypal or Authorize.net payment systems therefore we need a way to interface with UM to create/manage users. Since I can't use CLI to add users, what other option do I have to automatically add users?

Hate the inefficiency of UM 4.17. Loved the improvements of version 5. Mikrotik, please make this small change: ability to add user from cli that actually useful! Just add the profile option, that's all we ask for!


Thanks,
Sans

Re: Add new user via CLI/API version 5 not working

Posted: Tue Aug 30, 2011 12:28 pm
by stek
there is a workaround:

-> create, from web interface, a "template" user with a specific profile
-> add the new user with the following cmd:
/tool user-manager user add copy-from=template username=<user> password=<pass> customer=<customer>


Stefano