Get Specific User

Hello,
I would like to run the script every time the user enroll to my app.
How can I access the current user in the script?