<?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: Isolate AGOL Items Added by Specific Date in Admin Tools for ArcGIS Online &amp; Portal Questions</title>
    <link>https://community.esri.com/t5/admin-tools-for-arcgis-online-portal-questions/isolate-agol-items-added-by-specific-date/m-p/879483#M359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the Python API to loop through all users within your organization and then all of the content for each user, then find the created and modified properties of each item. They're stored in epoch time so you'll just need to convert the time that the influx started to epoch time to make the comparison.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "clone" sample has some of what you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/sample-notebooks/clone-portal-users-groups-and-content/#For-each-user-create-a-mapping-of-itemId-to-the-Item" title="https://developers.arcgis.com/python/sample-notebooks/clone-portal-users-groups-and-content/#For-each-user-create-a-mapping-of-itemId-to-the-Item" rel="nofollow noopener noreferrer" target="_blank"&gt;clone_portal_users_groups_and_content | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It generates a list of all users, and then loops through each users content. Instead of moving things or generating a mapping, you just need to get the created date:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #008000; font-weight: bold;"&gt;for&lt;/SPAN&gt; &lt;SPAN class=""&gt;item&lt;/SPAN&gt; &lt;SPAN class="" style="color: #aa22ff; font-weight: bold;"&gt;in&lt;/SPAN&gt; &lt;SPAN class=""&gt;user_content&lt;/SPAN&gt;&lt;SPAN class=""&gt;:
 &lt;/SPAN&gt;&lt;SPAN class=""&gt; print("epoch time of created timestamp: {}".format(item['created']))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would give you the epoch. You can take this a step further to give you a formatted string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #008000; font-weight: bold;"&gt;for&lt;/SPAN&gt; &lt;SPAN class=""&gt;item&lt;/SPAN&gt; &lt;SPAN class="" style="color: #aa22ff; font-weight: bold;"&gt;in&lt;/SPAN&gt; &lt;SPAN class=""&gt;user_content&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; print("item created: {}".format(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class=""&gt;item['created']/1000&lt;/SPAN&gt;&lt;SPAN class=""&gt;))))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;CODE&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 11:04:25 GMT</pubDate>
    <dc:creator>JonathanQuinn</dc:creator>
    <dc:date>2021-12-12T11:04:25Z</dc:date>
    <item>
      <title>Isolate AGOL Items Added by Specific Date</title>
      <link>https://community.esri.com/t5/admin-tools-for-arcgis-online-portal-questions/isolate-agol-items-added-by-specific-date/m-p/879482#M358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed on a certain date a large influx of my storage credits started being consumed. &lt;/P&gt;&lt;P&gt;Is there a way so isolate all the items that were added that date as a report or something similar?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2018 15:54:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/admin-tools-for-arcgis-online-portal-questions/isolate-agol-items-added-by-specific-date/m-p/879482#M358</guid>
      <dc:creator>Lake_Worth_BeachAdmin</dc:creator>
      <dc:date>2018-06-27T15:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Isolate AGOL Items Added by Specific Date</title>
      <link>https://community.esri.com/t5/admin-tools-for-arcgis-online-portal-questions/isolate-agol-items-added-by-specific-date/m-p/879483#M359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the Python API to loop through all users within your organization and then all of the content for each user, then find the created and modified properties of each item. They're stored in epoch time so you'll just need to convert the time that the influx started to epoch time to make the comparison.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "clone" sample has some of what you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/sample-notebooks/clone-portal-users-groups-and-content/#For-each-user-create-a-mapping-of-itemId-to-the-Item" title="https://developers.arcgis.com/python/sample-notebooks/clone-portal-users-groups-and-content/#For-each-user-create-a-mapping-of-itemId-to-the-Item" rel="nofollow noopener noreferrer" target="_blank"&gt;clone_portal_users_groups_and_content | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It generates a list of all users, and then loops through each users content. Instead of moving things or generating a mapping, you just need to get the created date:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #008000; font-weight: bold;"&gt;for&lt;/SPAN&gt; &lt;SPAN class=""&gt;item&lt;/SPAN&gt; &lt;SPAN class="" style="color: #aa22ff; font-weight: bold;"&gt;in&lt;/SPAN&gt; &lt;SPAN class=""&gt;user_content&lt;/SPAN&gt;&lt;SPAN class=""&gt;:
 &lt;/SPAN&gt;&lt;SPAN class=""&gt; print("epoch time of created timestamp: {}".format(item['created']))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would give you the epoch. You can take this a step further to give you a formatted string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #008000; font-weight: bold;"&gt;for&lt;/SPAN&gt; &lt;SPAN class=""&gt;item&lt;/SPAN&gt; &lt;SPAN class="" style="color: #aa22ff; font-weight: bold;"&gt;in&lt;/SPAN&gt; &lt;SPAN class=""&gt;user_content&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; print("item created: {}".format(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class=""&gt;item['created']/1000&lt;/SPAN&gt;&lt;SPAN class=""&gt;))))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;CODE&gt;&lt;SPAN class="" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 13px; vertical-align: baseline; box-sizing: inherit; color: #303336;"&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 11:04:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/admin-tools-for-arcgis-online-portal-questions/isolate-agol-items-added-by-specific-date/m-p/879483#M359</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2021-12-12T11:04:25Z</dc:date>
    </item>
  </channel>
</rss>

