<?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 How to let an App Access a Layer that was created by another User on ArcGIS Online? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-let-an-app-access-a-layer-that-was-created/m-p/51401#M4528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I'm creating a Custom App developed using ArcGIS JavaScript API. I need to access secured services from ArcGIS Online (hosted Feature service) in this App.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've managed to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Published a feature Layer from my AGOL (enterprise) Account.&lt;/LI&gt;&lt;LI&gt;Created an App on developers.arcgis.com&lt;/LI&gt;&lt;LI&gt;I'm hosting a&amp;nbsp;custom service which uses the client_id &amp;amp; client_secret to get the token.&lt;/LI&gt;&lt;LI&gt;This Token is used to make a request to FeatureLayer, and data is displayed on the Map.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;All of this was successful. Now I want to make a request to a FeatureLayer that was shared with me, by another user in the same Enterprise. I can see this layer in ArcGIS Online, and add it to maps in the Web UI. But when I try to use my Custom App, I get the following error when trying to connect to it via the token:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;{"error":{"code":403,"message":"You do not have permissions to access this resource or perform this operation.","messageCode":"GWM_0003","details":["You do not have permissions to access this resource or perform this operation."]}}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How do I let an App Access a Layer that was created by another User on ArcGIS Online?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2018 06:44:12 GMT</pubDate>
    <dc:creator>DevdattaTengshe2</dc:creator>
    <dc:date>2018-03-09T06:44:12Z</dc:date>
    <item>
      <title>How to let an App Access a Layer that was created by another User on ArcGIS Online?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-let-an-app-access-a-layer-that-was-created/m-p/51401#M4528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I'm creating a Custom App developed using ArcGIS JavaScript API. I need to access secured services from ArcGIS Online (hosted Feature service) in this App.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've managed to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Published a feature Layer from my AGOL (enterprise) Account.&lt;/LI&gt;&lt;LI&gt;Created an App on developers.arcgis.com&lt;/LI&gt;&lt;LI&gt;I'm hosting a&amp;nbsp;custom service which uses the client_id &amp;amp; client_secret to get the token.&lt;/LI&gt;&lt;LI&gt;This Token is used to make a request to FeatureLayer, and data is displayed on the Map.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;All of this was successful. Now I want to make a request to a FeatureLayer that was shared with me, by another user in the same Enterprise. I can see this layer in ArcGIS Online, and add it to maps in the Web UI. But when I try to use my Custom App, I get the following error when trying to connect to it via the token:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;{"error":{"code":403,"message":"You do not have permissions to access this resource or perform this operation.","messageCode":"GWM_0003","details":["You do not have permissions to access this resource or perform this operation."]}}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How do I let an App Access a Layer that was created by another User on ArcGIS Online?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2018 06:44:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-let-an-app-access-a-layer-that-was-created/m-p/51401#M4528</guid>
      <dc:creator>DevdattaTengshe2</dc:creator>
      <dc:date>2018-03-09T06:44:12Z</dc:date>
    </item>
  </channel>
</rss>

