<?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 Can't See Feature Layers After API Authentication in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-see-feature-layers-after-api-authentication/m-p/1183265#M77690</link>
    <description>&lt;P&gt;I have a page that accesses feature layers to display on a map. When the feature layers are configured as public, they work fine, but upon setting access to my organization, I receive the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;httpStatus: 403,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;messages: 'You do not have permissions to access this resource or perform this operation.'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the relevant code I use. Note that the API key is provided. Is there something else I am missing? Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;require([&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/kernel", &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/config",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/identity/IdentityManager", &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/Map",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/views/MapView",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/layers/FeatureLayer",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/symbols/SimpleMarkerSymbol",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/symbols/SimpleFillSymbol",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/symbols/SimpleLineSymbol",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/renderers/SimpleRenderer",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/widgets/LayerList",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/Graphic",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/layers/GraphicsLayer" &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;], function (&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;esriKernel, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;esriConfig,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;IdentityManager, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Map,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;MapView,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FeatureLayer,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SimpleMarkerSymbol,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SimpleFillSymbol,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SimpleLineSymbol, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SimpleRenderer,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LayerList, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Graphic, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;GraphicsLayer&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;) {&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;esriConfig.apiKey = "MY_ORG_API_KEY";&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;const map = new Map({&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;basemap: "arcgis-light-gray", // Basemap layer&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;});&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/* Feature, renderer, event, and display code here */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;});&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 19:21:38 GMT</pubDate>
    <dc:creator>raydeen</dc:creator>
    <dc:date>2022-06-15T19:21:38Z</dc:date>
    <item>
      <title>Can't See Feature Layers After API Authentication</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-see-feature-layers-after-api-authentication/m-p/1183265#M77690</link>
      <description>&lt;P&gt;I have a page that accesses feature layers to display on a map. When the feature layers are configured as public, they work fine, but upon setting access to my organization, I receive the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;httpStatus: 403,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;messages: 'You do not have permissions to access this resource or perform this operation.'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the relevant code I use. Note that the API key is provided. Is there something else I am missing? Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;require([&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/kernel", &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/config",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/identity/IdentityManager", &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/Map",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/views/MapView",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/layers/FeatureLayer",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/symbols/SimpleMarkerSymbol",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/symbols/SimpleFillSymbol",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/symbols/SimpleLineSymbol",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/renderers/SimpleRenderer",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/widgets/LayerList",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/Graphic",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"esri/layers/GraphicsLayer" &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;], function (&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;esriKernel, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;esriConfig,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;IdentityManager, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Map,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;MapView,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FeatureLayer,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SimpleMarkerSymbol,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SimpleFillSymbol,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SimpleLineSymbol, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SimpleRenderer,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LayerList, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Graphic, &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;GraphicsLayer&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;) {&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;esriConfig.apiKey = "MY_ORG_API_KEY";&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;const map = new Map({&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;basemap: "arcgis-light-gray", // Basemap layer&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;});&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;/* Feature, renderer, event, and display code here */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;});&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 19:21:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-see-feature-layers-after-api-authentication/m-p/1183265#M77690</guid>
      <dc:creator>raydeen</dc:creator>
      <dc:date>2022-06-15T19:21:38Z</dc:date>
    </item>
  </channel>
</rss>

