<?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 Is there an API that will generate a token using a portal login without a password? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/is-there-an-api-that-will-generate-a-token-using-a/m-p/1213608#M4274</link>
    <description>&lt;P&gt;Is there an API that will generate a token using a portal login without a password?&amp;nbsp; I do not have an admin account.&amp;nbsp; I have an account to our AGOL portal, where I login using a URL.&amp;nbsp; If I am running python on my laptop, I can connect using my ArcGIS Pro, if I stay logged into ArcGIS Pro (It times out from time to time :)).&amp;nbsp; But, I would like to generate a token using the REST API generate token in Microsoft Power Automate, so I can rerun my survey123 triggers when their tokens expire.&amp;nbsp; But it requires an username and password.&amp;nbsp; And, our IT department does not allow us to have an admin account.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Right now we are running a python script to reprocess these.&amp;nbsp; But we need this python script to be running on someone's machine using Task Manager.&lt;/P&gt;&lt;P&gt;This is to reprocess those that get this error:&lt;/P&gt;&lt;P&gt;{"error":{"message":"498: Invalid token.","code":498}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 22:26:28 GMT</pubDate>
    <dc:creator>FayGlunt</dc:creator>
    <dc:date>2022-09-16T22:26:28Z</dc:date>
    <item>
      <title>Is there an API that will generate a token using a portal login without a password?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/is-there-an-api-that-will-generate-a-token-using-a/m-p/1213608#M4274</link>
      <description>&lt;P&gt;Is there an API that will generate a token using a portal login without a password?&amp;nbsp; I do not have an admin account.&amp;nbsp; I have an account to our AGOL portal, where I login using a URL.&amp;nbsp; If I am running python on my laptop, I can connect using my ArcGIS Pro, if I stay logged into ArcGIS Pro (It times out from time to time :)).&amp;nbsp; But, I would like to generate a token using the REST API generate token in Microsoft Power Automate, so I can rerun my survey123 triggers when their tokens expire.&amp;nbsp; But it requires an username and password.&amp;nbsp; And, our IT department does not allow us to have an admin account.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Right now we are running a python script to reprocess these.&amp;nbsp; But we need this python script to be running on someone's machine using Task Manager.&lt;/P&gt;&lt;P&gt;This is to reprocess those that get this error:&lt;/P&gt;&lt;P&gt;{"error":{"message":"498: Invalid token.","code":498}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 22:26:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/is-there-an-api-that-will-generate-a-token-using-a/m-p/1213608#M4274</guid>
      <dc:creator>FayGlunt</dc:creator>
      <dc:date>2022-09-16T22:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an API that will generate a token using a portal login without a password?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/is-there-an-api-that-will-generate-a-token-using-a/m-p/1213617#M4275</link>
      <description>&lt;P&gt;Fay,&lt;/P&gt;&lt;P&gt;You don't need an admin account to generate a token using the REST endpoint. Any named user account can be used to generate a token which is what happens when the user logs in. The difference will be the content that account has access to &amp;amp; privilege the user can do.&lt;/P&gt;&lt;P&gt;I currently have several named user accounts with various privileges (eg. different role) used for integration/reporting purposes that generate their own tokens to then access content, write data, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is an endpoint that doesn't need a password but needs a registered application within Portal which uses a callback url to exchange keys, etc using OAuth . This can be a little difficult with Python, etc with spinning up a web server to listen on a predefined port and a few other things. I haven't done this before but there examples out there.&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 23:26:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/is-there-an-api-that-will-generate-a-token-using-a/m-p/1213617#M4275</guid>
      <dc:creator>AnthonyRyanEQL</dc:creator>
      <dc:date>2022-09-16T23:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an API that will generate a token using a portal login without a password?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/is-there-an-api-that-will-generate-a-token-using-a/m-p/1213883#M4276</link>
      <description>&lt;P&gt;Thank you so much,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/361046"&gt;@AnthonyRyanEQL&lt;/a&gt;&amp;nbsp;!&amp;nbsp; We are actually using this in another tool, and it never crossed our mind.&amp;nbsp; This is perfect for our use case.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 16:49:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/is-there-an-api-that-will-generate-a-token-using-a/m-p/1213883#M4276</guid>
      <dc:creator>FayGlunt</dc:creator>
      <dc:date>2022-09-19T16:49:24Z</dc:date>
    </item>
  </channel>
</rss>

