AnsweredAssumed Answered

Is there any way to get the username of user logged into Arcgis Server via the web for a GP service using arcpy?

Question asked by paul.haakma on Oct 11, 2016
Latest reply on Feb 20, 2018 by paul.haakma

Hi.

 

I'm wanting to publish a python script as a geoprocessing service (a secured service). Is there any way for arcpy to get the name of the arcgis server user who calls the gp task?

 

e.g. I log in and run the GP tool from the rest url, the script grabs my login name and the current datetime and adds it to a log table. We then end up with a log table of all users and times the script was run.

 

Cheers,

-Paul

Outcomes