<?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: querying feature layer with API &amp;amp; oauth token - getting 403 for some but not others in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/querying-feature-layer-with-api-amp-oauth-token/m-p/1500183#M59967</link>
    <description>&lt;P&gt;Thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12731"&gt;@simoxu&lt;/a&gt;&lt;/P&gt;&lt;P&gt;My environment is azure databricks notebooks atm but will eventually migrate to data factory so i'm limited to rest api calls&lt;/P&gt;&lt;P&gt;I did eventually see that the oauth app implementation in agol is very different and much more limited compared to the standard api auth for other webapps so it definitely wont work in my use case&lt;/P&gt;&lt;P&gt;Do you have any examples of how i could leverage the 'user auth' approach when all i'm doing is automated REST calls? I can't prompt a user to sign in manually as it will be being run as a background/system task. I also tried putting in the temp token from the user auth oauth2.0 app i created but that gave me 403s for every feature layer query, even the ones that worked using app auth!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2024 06:56:20 GMT</pubDate>
    <dc:creator>jakubk</dc:creator>
    <dc:date>2024-07-02T06:56:20Z</dc:date>
    <item>
      <title>querying feature layer with API &amp; oauth token - getting 403 for some but not others</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/querying-feature-layer-with-api-amp-oauth-token/m-p/1500133#M59962</link>
      <description>&lt;P&gt;I'm trying to automate pulling data from AGOL into our databricks environment&lt;/P&gt;&lt;P&gt;I've registered an application and have the token generation working&lt;/P&gt;&lt;P&gt;I'm using the&amp;nbsp;&lt;A href="https://services3.arcgis.com/xyz/ArcGIS/rest/services/abc/FeatureServer/0/query?" target="_blank"&gt;https://services3.arcgis.com/xyz/ArcGIS/rest/services/abc/FeatureServer/0/query?&lt;/A&gt;&amp;nbsp;api endpoint&lt;/P&gt;&lt;P&gt;It works for feature layers I own/created but I get a 403 for all other feature layers even though I can 'manually' browse to the api endpoint from the features' overview page&lt;/P&gt;&lt;P&gt;What do i need to do to configure it in agol so it can access all the org data?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 01:19:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/querying-feature-layer-with-api-amp-oauth-token/m-p/1500133#M59962</guid>
      <dc:creator>jakubk</dc:creator>
      <dc:date>2024-07-02T01:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: querying feature layer with API &amp; oauth token - getting 403 for some but not others</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/querying-feature-layer-with-api-amp-oauth-token/m-p/1500165#M59965</link>
      <description>&lt;P&gt;Not sure what type of development environment you are using...&lt;BR /&gt;Maybe try different authentication method, such as user authentication. It seems you are using App authentication which has some limitations.&lt;/P&gt;&lt;P&gt;Please see if the following doc helps&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/documentation/security-and-authentication/introduction/" target="_blank"&gt;https://developers.arcgis.com/documentation/security-and-authentication/introduction/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 05:48:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/querying-feature-layer-with-api-amp-oauth-token/m-p/1500165#M59965</guid>
      <dc:creator>simoxu</dc:creator>
      <dc:date>2024-07-02T05:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: querying feature layer with API &amp; oauth token - getting 403 for some but not others</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/querying-feature-layer-with-api-amp-oauth-token/m-p/1500183#M59967</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12731"&gt;@simoxu&lt;/a&gt;&lt;/P&gt;&lt;P&gt;My environment is azure databricks notebooks atm but will eventually migrate to data factory so i'm limited to rest api calls&lt;/P&gt;&lt;P&gt;I did eventually see that the oauth app implementation in agol is very different and much more limited compared to the standard api auth for other webapps so it definitely wont work in my use case&lt;/P&gt;&lt;P&gt;Do you have any examples of how i could leverage the 'user auth' approach when all i'm doing is automated REST calls? I can't prompt a user to sign in manually as it will be being run as a background/system task. I also tried putting in the temp token from the user auth oauth2.0 app i created but that gave me 403s for every feature layer query, even the ones that worked using app auth!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 06:56:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/querying-feature-layer-with-api-amp-oauth-token/m-p/1500183#M59967</guid>
      <dc:creator>jakubk</dc:creator>
      <dc:date>2024-07-02T06:56:20Z</dc:date>
    </item>
  </channel>
</rss>

