Hello,
I’m a newbie in programming. Recently I wrote a small management program (in Python) for MikroTik RouterOS v6 to create / display / edit / delete / print hotspot vouchers (cards).
The program can already show the user name, password and the user's current profile, but I need to display all profiles that were assigned to a user — specifically the currently active profile and any profiles that are in the waiting state.
My question: What RouterOS API command (or sequence of commands) should I call to return all profiles for a given user (both active and waiting) from User Manager?
For context: I’m using the RouterOS API from Python (the program is local, talking to the router), RouterOS v6 and the User Manager package.
Thanks in advance for any example responses (CLI or API — Python / PHP examples are both helpful).