<?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 Get access to services from Application in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/get-access-to-services-from-application/m-p/701925#M3395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm developing server-side&amp;nbsp;application which is going to retrieve and process list of layers.&lt;/P&gt;&lt;P&gt;I use&amp;nbsp;&lt;STRONG&gt;https://&amp;lt;rootUrl&amp;gt;/ArcGIS/rest/services?token=&amp;lt;token&amp;gt;&lt;/STRONG&gt;&amp;nbsp;as an endpoint for getting services.&lt;/P&gt;&lt;P&gt;If I do it from my browser using token I got during sign-in I can see a full list services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created an Application in order to do that job automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem is:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I get token using received from &lt;A class="link-titled" href="https://www.arcgis.com/sharing/rest/oauth2/token" title="https://www.arcgis.com/sharing/rest/oauth2/token" rel="nofollow noopener noreferrer" target="_blank"&gt;https://www.arcgis.com/sharing/rest/oauth2/token&lt;/A&gt;&amp;nbsp;with body:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;body.add(&lt;SPAN style="color: #6a8759;"&gt;"client_id"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;clientId&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;body.add(&lt;SPAN style="color: #6a8759;"&gt;"client_secret"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;clientSecret&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;body.add(&lt;SPAN style="color: #6a8759;"&gt;"grant_type"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"client_credentials"&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;If I use that token I receive the list containing only services shared to everyone and there are much less Items in the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How to autorize my application to&amp;nbsp;access&amp;nbsp;the same layers that I can do being logged in using my credentials?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 05:31:45 GMT</pubDate>
    <dc:creator>AgencyDeveloper</dc:creator>
    <dc:date>2021-12-12T05:31:45Z</dc:date>
    <item>
      <title>Get access to services from Application</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/get-access-to-services-from-application/m-p/701925#M3395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm developing server-side&amp;nbsp;application which is going to retrieve and process list of layers.&lt;/P&gt;&lt;P&gt;I use&amp;nbsp;&lt;STRONG&gt;https://&amp;lt;rootUrl&amp;gt;/ArcGIS/rest/services?token=&amp;lt;token&amp;gt;&lt;/STRONG&gt;&amp;nbsp;as an endpoint for getting services.&lt;/P&gt;&lt;P&gt;If I do it from my browser using token I got during sign-in I can see a full list services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created an Application in order to do that job automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem is:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I get token using received from &lt;A class="link-titled" href="https://www.arcgis.com/sharing/rest/oauth2/token" title="https://www.arcgis.com/sharing/rest/oauth2/token" rel="nofollow noopener noreferrer" target="_blank"&gt;https://www.arcgis.com/sharing/rest/oauth2/token&lt;/A&gt;&amp;nbsp;with body:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;body.add(&lt;SPAN style="color: #6a8759;"&gt;"client_id"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;clientId&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;body.add(&lt;SPAN style="color: #6a8759;"&gt;"client_secret"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;clientSecret&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;body.add(&lt;SPAN style="color: #6a8759;"&gt;"grant_type"&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"client_credentials"&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;If I use that token I receive the list containing only services shared to everyone and there are much less Items in the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How to autorize my application to&amp;nbsp;access&amp;nbsp;the same layers that I can do being logged in using my credentials?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:31:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/get-access-to-services-from-application/m-p/701925#M3395</guid>
      <dc:creator>AgencyDeveloper</dc:creator>
      <dc:date>2021-12-12T05:31:45Z</dc:date>
    </item>
  </channel>
</rss>

