Get user external IP

Hello!
Please help me with ideas.
After connecting the user via VPN, I want to get his external address and put it in the white list. But the address is visible only in the user authentication log. How can it be extracted from there and put into a variable to use in a script?

hi
use script in ppp profile on-up variable caller-id

Thanks for the idea, I tried it but there is one problem, I can not make a universal script. It must be separately modified for each user.
Is it possible in the script to get data from which user it is running?

Sorry I didn’t understand you :slight_smile: I finally found what did you mean. https://wiki.mikrotik.com/wiki/Manual:PPP_AAA
Thanks!!!