aysan
1
/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?
mrz
2
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
3
Yes I am using Php API. I am gonna try queries.
Thank you very much.
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
5
I Solved my problem with this query;
write("/tool/user-manager/user/print
?=username=$username
");
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)