Community discussions

MikroTik App
 
aysan
newbie
Topic Author
Posts: 34
Joined: Wed Aug 18, 2010 11:40 am

How to find user?

Tue Dec 28, 2010 12:05 am

/tool/user-manager/user/find subscriber="admin" ----> return users
/tool/user-manager/user/find subscriber="admin" name="username" --> return any user
/tool/user-manager/user/print --> return subscriber="admin" name="username" ....

How to use /tool/user-manager/user/find command or another way that find user?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7042
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: How to find user?

Tue Dec 28, 2010 9:31 am

From command syntax I assume that you are using API.
Find command is not available fro api, you have to use queries:
http://wiki.mikrotik.com/wiki/API#Queries
 
aysan
newbie
Topic Author
Posts: 34
Joined: Wed Aug 18, 2010 11:40 am

Re: How to find user?

Sun Jan 02, 2011 12:28 am

Yes I am using Php API. I am gonna try queries.
Thank you very much.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: How to find user?

Fri Jan 07, 2011 6:40 pm

I don't know the exact syntax, but it should be close to this:
Send("/tool/user-manager/user/print",false);
Send("?subscriber=admin",true);
False=do not send end-of-command zero byte
True=send end-of-command
 
aysan
newbie
Topic Author
Posts: 34
Joined: Wed Aug 18, 2010 11:40 am

Re: How to find user?

Wed Jan 12, 2011 4:04 pm

I Solved my problem with this query;

write("/tool/user-manager/user/print
?=username=$username
");
 
nokhodsiah2001
just joined
Posts: 6
Joined: Mon Apr 15, 2013 3:46 pm

Re: How to find user?

Sun Dec 11, 2016 3:09 pm

Hi

i have a problem too

i use the following code and its show !done
but not show any user
mk.Send("/tool/user-manager/user/print")
mk.Send("?=username=" + "username")
mk.Send(".tag=", True)

Who is online

Users browsing this forum: No registered users and 10 guests