username of geoprocessing service user

Discussion created by kyle969 on Feb 23, 2012
Latest reply on Mar 8, 2012 by kyle969
I need to log usage of a geoprocessing service inside the python script. Is there any way, inside the script, to capture the user who is using the service?
It is a secured service requiring authentication.
I'm using ArcServer 10.1

I have tried this:
import getpass

It only prints 'arcgis', the arcserver admin account no matter who is logged in to use the service.