<?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: Getting User Name through Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/getting-user-name-through-python/m-p/62265#M4997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Something that you might want to look for if you are moving to 10.1 is the new editor tracking capabilities. This will allow the geodatabase to automatically enter certain attributes such as user names when records are updated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2012 17:25:32 GMT</pubDate>
    <dc:creator>RussellBrennan</dc:creator>
    <dc:date>2012-01-26T17:25:32Z</dc:date>
    <item>
      <title>Getting User Name through Python</title>
      <link>https://community.esri.com/t5/python-questions/getting-user-name-through-python/m-p/62262#M4994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm writing a python script that will automatically add records to an SDE data base from an excel table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if there is a way to autopopulate the creation user field based on who is running the script. Basically, is there a way to determine what the username of the person logged into the computer is through python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 14:29:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getting-user-name-through-python/m-p/62262#M4994</guid>
      <dc:creator>JeremyLuymes</dc:creator>
      <dc:date>2012-01-25T14:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Getting User Name through Python</title>
      <link>https://community.esri.com/t5/python-questions/getting-user-name-through-python/m-p/62263#M4995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi Jeremy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;getpass should do the trick:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import getpass print getpass.getuser()&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 14:45:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getting-user-name-through-python/m-p/62263#M4995</guid>
      <dc:creator>RaphaelR</dc:creator>
      <dc:date>2012-01-25T14:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Getting User Name through Python</title>
      <link>https://community.esri.com/t5/python-questions/getting-user-name-through-python/m-p/62264#M4996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can also try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import os
print os.environ.get( "USERNAME" ) 
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:22:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getting-user-name-through-python/m-p/62264#M4996</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2021-12-10T22:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting User Name through Python</title>
      <link>https://community.esri.com/t5/python-questions/getting-user-name-through-python/m-p/62265#M4997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Something that you might want to look for if you are moving to 10.1 is the new editor tracking capabilities. This will allow the geodatabase to automatically enter certain attributes such as user names when records are updated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 17:25:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getting-user-name-through-python/m-p/62265#M4997</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2012-01-26T17:25:32Z</dc:date>
    </item>
  </channel>
</rss>

