<?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: Scheduling Tasks That Access Portal Data in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623147#M96574</link>
    <description>&lt;P&gt;Are the AD logins username/password or PIV/smartcard, i.e., single or multi-factor logins?&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jun 2025 18:02:49 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2025-06-12T18:02:49Z</dc:date>
    <item>
      <title>Scheduling Tasks That Access Portal Data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623096#M96565</link>
      <description>&lt;P&gt;I'm going over how my team manages scheduled tasks and I'm running into a roadblock. We have a number of tools that need to run directly against feature services, which means Pro needs credentials for the portal they're hosted and registered in. The issues is that Pro doesn't keep a user signed in indefinitely, so I have to go through every machine that runs these tasks and sign out then in to refresh the credentials. Consolidating every task to a single machine and service account simplifies this process but ideally I want a solution that doesn't need regular checkups like this.&lt;/P&gt;&lt;P&gt;Has anyone found a good solution for keeping Pro credentials refreshed? Alternatively, is there a reliable way for tasks to access portal data without relying on Pro's current account?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 16:05:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623096#M96565</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-06-12T16:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling Tasks That Access Portal Data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623114#M96566</link>
      <description>&lt;P&gt;Have you read through all of &lt;SPAN&gt;&lt;A href="https://developers.arcgis.com/documentation/security-and-authentication/types-of-authentication/" target="_self"&gt;Types of authentication | Documentation | Esri Developer&lt;/A&gt;?&amp;nbsp; The introduction of API key authentication at 11.4 really streamlined personal automation scripts.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 16:32:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623114#M96566</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2025-06-12T16:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling Tasks That Access Portal Data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623118#M96567</link>
      <description>&lt;P&gt;This looks fantastic for scripts that use the Python API and REST APIs but I don't think it's suitable for my case. I need to schedule Modelbuilder models and/or script tools that primarily use arcpy. These tools will need to access geodatabase items through a file path or EGDB connection as well as feature services via URL and they need to function as user-driven toolbox tools as well as scheduled tasks via the Python wrappers Pro creates. The developer info doesn't mention anything about traditional Desktop workflows and limits like "must refresh and replace the keys" or "can only access up to 100 owned items" are also a non-starter. In a perfect world the only maintenance required in the process is reauthenticating on the machine that runs the tasks any time we change the password for our scheduled tasks account and then everything flows from that.&lt;/P&gt;&lt;P&gt;That said, this is&amp;nbsp;&lt;EM&gt;much&lt;/EM&gt; better than our current solution for outside apps that integrate with our Portal so I'll dig into this once my team does the next Enterprise upgrade, thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 16:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623118#M96567</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-06-12T16:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling Tasks That Access Portal Data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623139#M96571</link>
      <description>&lt;P&gt;Make sure to read&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://enterprise.arcgis.com/en/portal/latest/administer/windows/specify-the-default-token-expiration-time.htm" target="_self"&gt;Specify the maximum token expiration time - Portal for ArcGIS | Documentation for ArcGIS Enterprise,&lt;/A&gt;&amp;nbsp;it covers default and maximum timeframes for various tokens used to connect to Portal and services.&amp;nbsp; Allowing up to 14-days for some of the tokens is fairly generous from a security standpoint.&amp;nbsp; As convenient as months-long refresh tokens would be, they would represent a security risk that I doubt many system security officers would be willing to live with.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 17:55:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623139#M96571</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2025-06-12T17:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling Tasks That Access Portal Data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623140#M96572</link>
      <description>&lt;P&gt;How is Portal authentication happening, built-in accounts or an identity provider?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 17:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623140#M96572</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2025-06-12T17:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling Tasks That Access Portal Data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623141#M96573</link>
      <description>&lt;P&gt;Right now the accounts are the ones linked to our AD (I&amp;nbsp;&lt;EM&gt;think&lt;/EM&gt; that's the Identity Provider type) but we need to spin up a new account eventually so we can switch to a built-in account if that works better.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 17:59:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623141#M96573</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-06-12T17:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling Tasks That Access Portal Data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623147#M96574</link>
      <description>&lt;P&gt;Are the AD logins username/password or PIV/smartcard, i.e., single or multi-factor logins?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 18:02:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623147#M96574</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2025-06-12T18:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling Tasks That Access Portal Data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623149#M96576</link>
      <description>&lt;P&gt;Just username/password. I think we'll have to use 2FA eventually due to Azure rules but it's currently not enabled.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 18:06:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623149#M96576</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-06-12T18:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling Tasks That Access Portal Data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623150#M96577</link>
      <description>&lt;P&gt;Not having multi-factor definitely simplifies it, albeit at the price of less security.&amp;nbsp; Have you thought about using&amp;nbsp;&lt;SPAN&gt;S&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/signintoportal.htm" target="_self"&gt;ignInToPortal- ArcGIS Pro | Documentation&lt;/A&gt; in the code to ensure tokens are refreshed/renewed before running tools?&amp;nbsp; The tool works with Integrated Web Authentication (IWA), or you could try using Windows Credential Manager.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 18:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623150#M96577</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2025-06-12T18:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling Tasks That Access Portal Data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623157#M96578</link>
      <description>&lt;P&gt;At first glance this looks like the magic bullet, I'll get my hands on a built-in account and report my findings once I have time to test this&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 18:17:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623157#M96578</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-06-12T18:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling Tasks That Access Portal Data</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623254#M96585</link>
      <description>&lt;P&gt;Bingo! Scheduling a task that accesses a feature service, opening the task wrapper and adding&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;arcpy.SignInToPortal(arcpy.GetActivePortalURL(), username, password)&lt;/FONT&gt; makes the tool run without issues. It even sets the application's logged-in user which is great for consistency. Thanks for all the advice Josh!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 21:15:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduling-tasks-that-access-portal-data/m-p/1623254#M96585</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-06-12T21:15:27Z</dc:date>
    </item>
  </channel>
</rss>

