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).

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
You won’t learn much if you ask others to do it for you.