<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Username of the current user (python geoprocessing tool) in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/username-of-the-current-user-python-geoprocessing/m-p/487944#M16310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's been years but have you figured it out how to do this? I have the same problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jan 2020 11:34:13 GMT</pubDate>
    <dc:creator>GiacomoFavaron</dc:creator>
    <dc:date>2020-01-24T11:34:13Z</dc:date>
    <item>
      <title>Username of the current user (python geoprocessing tool)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/username-of-the-current-user-python-geoprocessing/m-p/487943#M16309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to get the username of the current user within a python geoprocessing tool?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The username must be the name of the user logged on to my IIS web application with an ArcGIS Web Adapter. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The python script is published to an ArcGIS Server 10.1 with Active Directory and Web Tier authentication.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import getpass
getpass.getuser()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, this always returns "arcgis" (properly the ArcGIS Server service user identity).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 14:28:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/username-of-the-current-user-python-geoprocessing/m-p/487943#M16309</guid>
      <dc:creator>MortenHansen</dc:creator>
      <dc:date>2013-01-14T14:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Username of the current user (python geoprocessing tool)</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/username-of-the-current-user-python-geoprocessing/m-p/487944#M16310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's been years but have you figured it out how to do this? I have the same problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2020 11:34:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/username-of-the-current-user-python-geoprocessing/m-p/487944#M16310</guid>
      <dc:creator>GiacomoFavaron</dc:creator>
      <dc:date>2020-01-24T11:34:13Z</dc:date>
    </item>
  </channel>
</rss>

