<?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: GetUser - need only user name in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1661802#M99819</link>
    <description>&lt;P&gt;Thank you for this!&lt;/P&gt;</description>
    <pubDate>Wed, 29 Oct 2025 12:14:32 GMT</pubDate>
    <dc:creator>BigLouC</dc:creator>
    <dc:date>2025-10-29T12:14:32Z</dc:date>
    <item>
      <title>GetUser - need only user name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1084038#M43905</link>
      <description>&lt;P&gt;I'm trying to get the currently logged in username in an Arcade expression in ArcPro 2.8.&amp;nbsp; I've used the&amp;nbsp;GetUser(Portal('&lt;A href="https://www.arcgis.com" target="_blank" rel="noopener"&gt;https://www.arcgis.com&lt;/A&gt;')) to populate the user id, username, name, email etc. in a big long string, but I only want the username.&amp;nbsp; How can I do that?&amp;nbsp; Seems like it should be fairly straight forward.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 15:59:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1084038#M43905</guid>
      <dc:creator>LukeGilner1</dc:creator>
      <dc:date>2021-07-29T15:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: GetUser - need only user name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1085854#M44053</link>
      <description>&lt;P&gt;I am wondering how to do this in C# using the Pro SDK.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 17:33:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1085854#M44053</guid>
      <dc:creator>ScottLehto3</dc:creator>
      <dc:date>2021-08-04T17:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: GetUser - need only user name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1087472#M44251</link>
      <description>&lt;P&gt;I've figured this out using a combination of GetUser, Mid, and Split functions.&amp;nbsp; The GetUser returns the long string of id, username, name, email, etc., so I used the Mid function to separate a portion of it, where the username begins.&amp;nbsp; Since our all of our users usernames are different lengths but have a "@" symbol in them, I was able to use the Split function to split it by the "@", which returns an array, so then I called to return the first part of the split array (array[0]).&amp;nbsp; I only need this first part in my data.&amp;nbsp; See below for what I entered in the calculate field tool.&amp;nbsp; I'm sure there's an easier way to do this.&lt;/P&gt;&lt;P&gt;var userinfo = Mid(GetUser(Portal('&lt;A href="https://www.arcgis.com')),53,20" target="_blank"&gt;https://www.arcgis.com')),53,20&lt;/A&gt;);&lt;BR /&gt;var array = Split(userinfo,"@",1);&lt;BR /&gt;var username = array[0];&lt;BR /&gt;return username;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 13:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1087472#M44251</guid>
      <dc:creator>LukeGilner1</dc:creator>
      <dc:date>2021-08-10T13:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: GetUser - need only user name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1087925#M44332</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;I'm sure there's an easier way to do this.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I guess there is a slightly more elegant way. I searched the web for hours und struggled with my own fiddly solution until I found this &lt;A href="https://community.esri.com/t5/attribute-rules-videos/use-the-getuser-arcade-function-to-return-the/td-p/1016599" target="_blank" rel="noopener"&gt;video&lt;/A&gt;. Try this. I think it will work with every other entry in the &lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#getuser" target="_blank" rel="noopener"&gt;dictionary list&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;var p = Portal('&lt;A href="https://www.arcgis.com" target="_blank" rel="noopener"&gt;https://www.arcgis.com&lt;/A&gt;');&lt;BR /&gt;var u = getUser(p);&lt;BR /&gt;var fullName = u.fullName;&lt;BR /&gt;return fullName;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 14:56:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1087925#M44332</guid>
      <dc:creator>Spacelord</dc:creator>
      <dc:date>2021-08-11T14:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: GetUser - need only user name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1087965#M44337</link>
      <description>&lt;P&gt;YES - THANK YOU!&lt;/P&gt;&lt;P&gt;I knew there had to be an easier way to get the specific items from the dictionary list.&amp;nbsp; I too stumbled upon that video after hours of web searching, but it seemed like I needed to identify the specific users so it wouldn't work for me.&lt;/P&gt;&lt;P&gt;I modified your code slightly to grab the username, and I also still needed to use the split function because I only wanted the first part of the username.&amp;nbsp; Thanks again!&amp;nbsp; I get discouraged when I don't receive responses from the community.&lt;/P&gt;&lt;P&gt;var p = Portal('&lt;A href="https://www.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;');&lt;BR /&gt;var u = getUser(p);&lt;BR /&gt;var fullusername = u.username;&lt;BR /&gt;var array = Split(fullusername,"@",1);&lt;BR /&gt;var username = array[0]&lt;BR /&gt;return username;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 15:54:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1087965#M44337</guid>
      <dc:creator>LukeGilner1</dc:creator>
      <dc:date>2021-08-11T15:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: GetUser - need only user name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1323222#M72539</link>
      <description>&lt;P&gt;I just modified this code for my own professional use. It runs and returns my username in the arcade editor, but creates a null in Field Maps.&lt;BR /&gt;Does anyone have any ideas why this might be, or what could be done to fix the error?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 22:03:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1323222#M72539</guid>
      <dc:creator>MichaelTurner1</dc:creator>
      <dc:date>2023-08-28T22:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: GetUser - need only user name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1323444#M72565</link>
      <description>&lt;P&gt;Maybe post the code so we can try to help.&amp;nbsp; I'm not sure what the problem would be.&amp;nbsp; Are you using the correct Portal for your Field Maps?&amp;nbsp; I believe it would be different than the above example if you're using Enterprise.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 13:40:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1323444#M72565</guid>
      <dc:creator>LukeGilner1</dc:creator>
      <dc:date>2023-08-29T13:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: GetUser - need only user name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1323682#M72590</link>
      <description>&lt;P&gt;Ugh. Sorry to gum up the forum with a non-issue. I had changed the portal to my organization's, but had made a typo in doing so. I corrected it, and it works on and offline. Thank you for the help!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 21:19:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1323682#M72590</guid>
      <dc:creator>MichaelTurner1</dc:creator>
      <dc:date>2023-08-29T21:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: GetUser - need only user name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1323849#M72608</link>
      <description>&lt;P&gt;Pobodys Nerfect.&amp;nbsp; Glad you figured it out.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 11:54:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1323849#M72608</guid>
      <dc:creator>LukeGilner1</dc:creator>
      <dc:date>2023-08-30T11:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: GetUser - need only user name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1396826#M80474</link>
      <description>&lt;P&gt;For anyone searching how to do this, and finding this thread, you can also do the following:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;getuser&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"&gt;https://www.arcgis.com&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;)).user&lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Mar 2024 21:03:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1396826#M80474</guid>
      <dc:creator>MarkBockenhauer</dc:creator>
      <dc:date>2024-03-15T21:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: GetUser - need only user name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1661802#M99819</link>
      <description>&lt;P&gt;Thank you for this!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2025 12:14:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1661802#M99819</guid>
      <dc:creator>BigLouC</dc:creator>
      <dc:date>2025-10-29T12:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: GetUser - need only user name</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1666964#M100228</link>
      <description>&lt;P&gt;In case anyone else gets here while troubleshooting - this was the solution for me for about a year, but somehow upgrading to ArcGIS Pro 3.6.0 has broken it.&amp;nbsp; I'm getting an unexpected null.&amp;nbsp; I'm signed in to the portal just fine - nothing changed but the upgrade.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 22:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/getuser-need-only-user-name/m-p/1666964#M100228</guid>
      <dc:creator>scardina</dc:creator>
      <dc:date>2025-11-18T22:47:07Z</dc:date>
    </item>
  </channel>
</rss>

