<?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: Accessing User Credentials - Experience Builder Developer Edition in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/accessing-user-credentials-experience-builder/m-p/1164854#M4198</link>
    <description>&lt;P&gt;Within a widget you can do:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.props.user&lt;/LI-CODE&gt;&lt;P&gt;This will give you an object with the current user's information. This object will be of type IUser&lt;/P&gt;</description>
    <pubDate>Fri, 15 Apr 2022 18:32:15 GMT</pubDate>
    <dc:creator>AlejandroMari1</dc:creator>
    <dc:date>2022-04-15T18:32:15Z</dc:date>
    <item>
      <title>Accessing User Credentials - Experience Builder Developer Edition</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/accessing-user-credentials-experience-builder/m-p/1154073#M3944</link>
      <description>&lt;P&gt;Hello all, I am trying to access the logged in user's credentials within an experience. Ideally, the username or user id would be used as part of a query on a layer.&lt;/P&gt;&lt;P&gt;I believe that I can get the credentials and set them as a global variable but cannot figure out how to access this information. I see that there is documentation about&amp;nbsp;&lt;A href="https://developers.arcgis.com/experience-builder/api-reference/jimu-core/SessionManager" target="_blank"&gt;SessionManager&amp;nbsp;&lt;/A&gt;but I am a relative newcomer to JS and am a bit lost.&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 21:50:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/accessing-user-credentials-experience-builder/m-p/1154073#M3944</guid>
      <dc:creator>mfavorito1995</dc:creator>
      <dc:date>2022-03-15T21:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing User Credentials - Experience Builder Developer Edition</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/accessing-user-credentials-experience-builder/m-p/1154078#M3945</link>
      <description>&lt;P&gt;If you create an import at the top of your tsx/ts file to getAppStore eg&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import { getAppStore } from 'jimu-core';&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The you can make a call to get the state of the application, with&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; let state = getAppStore().getState();&lt;/LI-CODE&gt;&lt;P&gt;The state object has the details of the logged in user. eg&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GrantSCarroll_0-1647381895014.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/36432iD8663E29743FBB10/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GrantSCarroll_0-1647381895014.png" alt="GrantSCarroll_0-1647381895014.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 22:05:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/accessing-user-credentials-experience-builder/m-p/1154078#M3945</guid>
      <dc:creator>Grant-S-Carroll</dc:creator>
      <dc:date>2022-03-15T22:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing User Credentials - Experience Builder Developer Edition</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/accessing-user-credentials-experience-builder/m-p/1164854#M4198</link>
      <description>&lt;P&gt;Within a widget you can do:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.props.user&lt;/LI-CODE&gt;&lt;P&gt;This will give you an object with the current user's information. This object will be of type IUser&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 18:32:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/accessing-user-credentials-experience-builder/m-p/1164854#M4198</guid>
      <dc:creator>AlejandroMari1</dc:creator>
      <dc:date>2022-04-15T18:32:15Z</dc:date>
    </item>
  </channel>
</rss>

