HELP - Get name by addres-list from a name of user in ppp secret

Hi all, someone can give me a way to get the address-list name from a user by script
my task, I have a name of user (zacarias) and need to get the name of address-list (local01).
Sem título.jpg
Thanks in advance.

Depends on what you want to do with the address list. one possible way is this:

:foreach myuser in=[/ppp secret print as-value where name="YOUR_USERNAME"] do={:foreach myprofile in=[/ppp profile print as-value where name=($myuser->"profile")] do={:put ($myprofile->"address-list")}}

But to be honest, it sounds more like homework than a task :slight_smile: You won’t learn much if you ask others to do it for you.