Capturing name of the user who is running a shell script

Hello All,
I am writing a shell script which will run on build server where multiple users can login.These users can run this script at the same time.
I want to capture the name of the user who ran the script for every instance.How can I do that ?

Regards,
Anand Shah

Hi,
There are 2 commands that can help you:

who am i

tells you which user was used to login.

whoami

tells you the current user (in case the user su'ed to another account).