Username of the current user (python geoprocessing tool)

01-14-2013 06:28 AM
New Contributor II
Is there a way to get the username of the current user within a python geoprocessing tool?

The username must be the name of the user logged on to my IIS web application with an ArcGIS Web Adapter.

The python script is published to an ArcGIS Server 10.1 with Active Directory and Web Tier authentication.

I have tried:

import getpass

However, this always returns "arcgis" (properly the ArcGIS Server service user identity).
0 Kudos
1 Reply
New Contributor III

It's been years but have you figured it out how to do this? I have the same problem