Script to output ip address on a particular shared user account on hotspot

hi guys I need help in doing this

I have this scenario that a Hotspot User account AAAAA is shared up to 3 users

in hotspot active users there are 3 user sharing the account logged in.

user1 AAAAAA ip address=10.5.50.2
user2 AAAAAA ip address=10.5.50.7
user3 AAAAAA ip address=10.5.50.11

i just need to get all the ip addresses for a specific account
how to do I do this in script where the output will result in => 10.5.50.2,10.5.50.7,10.5.50.11 (delimited by comma)
so i can use this as a target value so they will share 1 limit in queue simple..

I do not run hotspot, but can try to help.

What command do you run to get this list:

user1 AAAAAA ip address=10.5.50.2
user2 AAAAAA ip address=10.5.50.7
user3 AAAAAA ip address=10.5.50.11

AAAAA is the username of the account shared by 3 users..

this is the print result i can’t seem to get the output using

:local ipadd (/ip hotspot active get [find name=“C@SFamily09”] address)
:log info $ipadd;