<?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: Get logged in Username in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/get-logged-in-username/m-p/1411868#M8398</link>
    <description>&lt;P&gt;Would be nice if they fixed that...&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2024 20:01:58 GMT</pubDate>
    <dc:creator>SolanaFoo2</dc:creator>
    <dc:date>2024-04-18T20:01:58Z</dc:date>
    <item>
      <title>Get logged in Username</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/get-logged-in-username/m-p/1267104#M5547</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just back from the Dev Summit and thought I'd start diving into FieldMaps.&amp;nbsp; So I'm creating my first form and want to AutoPopulate the "USERNAME" field with that of the logged in user.&amp;nbsp; I'm assuming I need to use Arcade to do this, but I have no clue what the code would be.&lt;/P&gt;&lt;P&gt;In QuickCapture this was super easy.&amp;nbsp; Can anyone advise?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 15:29:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/get-logged-in-username/m-p/1267104#M5547</guid>
      <dc:creator>BrianBulla1</dc:creator>
      <dc:date>2023-03-13T15:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get logged in Username</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/get-logged-in-username/m-p/1267119#M5548</link>
      <description>&lt;P&gt;OK, I figured this out.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;GetUser($layer).fullName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 15:42:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/get-logged-in-username/m-p/1267119#M5548</guid>
      <dc:creator>BrianBulla1</dc:creator>
      <dc:date>2023-03-13T15:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get logged in Username</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/get-logged-in-username/m-p/1267164#M5550</link>
      <description>&lt;P&gt;Another configuration would be to enable editor tracking in Map Viewer, which I believe adds the fields: [Creator, Creator Date, Editor, Edit Date]&amp;nbsp;to your feature layer where you want to add/edit features. These fields populate from signed in AGOL or Enterprise Portal user credentials.&amp;nbsp; &amp;nbsp; After you enable editor&amp;nbsp; tracking, to add the fields,&amp;nbsp; you can then configure and utilize the fields in Field Maps Designer form view and elsewhere.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADS_0-1678726145151.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65104i41E8DEC8CF7FA433/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ADS_0-1678726145151.png" alt="ADS_0-1678726145151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADS_1-1678726215208.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65105i5B08732659D6E86E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ADS_1-1678726215208.png" alt="ADS_1-1678726215208.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 16:58:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/get-logged-in-username/m-p/1267164#M5550</guid>
      <dc:creator>ADS</dc:creator>
      <dc:date>2023-03-13T16:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get logged in Username</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/get-logged-in-username/m-p/1270510#M5600</link>
      <description>&lt;P&gt;Be careful with this if you plan to take Field Maps offline. FullName, FirstName, and LastName do not work while offline. username however, does work.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 17:19:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/get-logged-in-username/m-p/1270510#M5600</guid>
      <dc:creator>DanielMiranda2</dc:creator>
      <dc:date>2023-03-22T17:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get logged in Username</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/get-logged-in-username/m-p/1411868#M8398</link>
      <description>&lt;P&gt;Would be nice if they fixed that...&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 20:01:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/get-logged-in-username/m-p/1411868#M8398</guid>
      <dc:creator>SolanaFoo2</dc:creator>
      <dc:date>2024-04-18T20:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get logged in Username</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/get-logged-in-username/m-p/1661807#M11822</link>
      <description>&lt;P&gt;I used this from another post, in my case, I needed to strip only the userID number part from the whole text as the field I was populating was a number field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;p&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Portal&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://www.arcgis.com" target="_blank" rel="noopener"&gt;https://www.arcgis.com&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;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t;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Oct 2025 12:18:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/get-logged-in-username/m-p/1661807#M11822</guid>
      <dc:creator>BigLouC</dc:creator>
      <dc:date>2025-10-29T12:18:10Z</dc:date>
    </item>
  </channel>
</rss>

