PPP On Up Script for Specific user

Hi,

is there a way to run a script when a specific ppp user logs in.

Example:
PPP User1 logs in > do Script1
PPP User2 logs in > do Script2

:if ([/ppp active find name="User1"] = true) do={/system script run Script1}

I m not very familiar with scripting. Maybe that will be the wrong direction I m heading to :confused:

https://wiki.mikrotik.com/wiki/Manual%3APPP_AAA#User_Profiles
see on-up section

You need to edit this line

:local active [/ppp active find name=User1];
:if ([:len $active] > 0)  do={/system script run Script1}