<?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: View Item usage usage by user in Portal in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/view-item-usage-usage-by-user-in-portal/m-p/1247723#M13081</link>
    <description>&lt;P&gt;The code above returns the TOTAL numViews. Is there a parameter in the search query that would return numViews from a begin and end date/time?&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 18:47:21 GMT</pubDate>
    <dc:creator>JimO_Leary2</dc:creator>
    <dc:date>2023-01-12T18:47:21Z</dc:date>
    <item>
      <title>View Item usage usage by user in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/view-item-usage-usage-by-user-in-portal/m-p/1026236#M10564</link>
      <description>&lt;P&gt;I am running the 10.8 version of the Enterprise base deployment stack with Portal sitting on top.&amp;nbsp; I want to be able to view which user is viewing which Portal item.&amp;nbsp; I want to do this so I can understand if our users (&amp;gt;250) are actually accessing the maps we created for them.&amp;nbsp; For example, is a user in the planning teams actually accessing the planning-focused maps? I can use 'Last login' but that information is way too coarse for my needs.&amp;nbsp; I have seem the thread "&lt;SPAN&gt;How can I track usage statistics for all items in my AGOL organization?" but it dates from 2017/2018.&amp;nbsp; My idea is for a set of mature admin tools for Portal that allows for this type of query as my managers are asking me to justify the expenditure on the Enterprise stack.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 12:57:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/view-item-usage-usage-by-user-in-portal/m-p/1026236#M10564</guid>
      <dc:creator>DrMap101</dc:creator>
      <dc:date>2021-02-12T12:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: View Item usage usage by user in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/view-item-usage-usage-by-user-in-portal/m-p/1026274#M10565</link>
      <description>&lt;P&gt;I wonder if that's something you could do with &lt;A href="https://www.esri.com/en-us/arcgis/products/arcgis-monitor/overview" target="_self"&gt;ArcGIS Monitor&lt;/A&gt;? Unfortunately, the &lt;STRONG&gt;usage&lt;/STRONG&gt; method is only available to AGOL, &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#arcgis.gis.Item.usage" target="_self"&gt;per the docs&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Here are a couple of other approaches:&lt;/P&gt;&lt;H4&gt;Portal Logs&lt;/H4&gt;&lt;P&gt;It's still pretty coarse, but you can go to &lt;STRONG&gt;web-adaptor-url/portal/portaladmin&lt;/STRONG&gt; and pull logs from there. It won't get you &lt;EM&gt;what&lt;/EM&gt; that user did, but you can at least see the frequency of their logins as opposed to "last login", to get a per-user sense of their overall use of the portal.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1613138406451.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5903i7A8FCD74079A613D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1613138406451.png" alt="jcarlson_0-1613138406451.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;H4&gt;Groups&lt;/H4&gt;&lt;P&gt;More relevant to your question, though, it to get item-level usage stats. The best I think you could hope for is to really strictly enforce group-based access to your content. Perhaps you already do this, but using your example above, if you were certain that only users in the "Planning" group had access to a particular planning-centric map, you could be relatively certain that the view count for that web map consists of views from that group.&lt;/P&gt;&lt;P&gt;Of course, that method still has a major drawback: the view count is cumulative.&lt;/P&gt;&lt;H4&gt;Getting View Counts Over Time&lt;/H4&gt;&lt;P&gt;Each item in the portal has a property &lt;STRONG&gt;numViews&lt;/STRONG&gt;. If you're comfortable with scripting, you could easily pull the view count at regular intervals. Consider the following python code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS
from datetime import datetime

gis = GIS('your-portal-url', 'user', 'password')
full_content_list = gis.content.search(query='', max_items=-1)

view_counts_dict = {}

for item in full_content_list:
    view_counts[item.title] = [item.numViews, datetime.now()]&lt;/LI-CODE&gt;&lt;P&gt;The resulting dict object has a key for &lt;EM&gt;every &lt;/EM&gt;content item in your portal (provided the user you logged in with is an admin), and for each item, the number of views and the timestamp.&lt;/P&gt;&lt;P&gt;That dict could easily be manipulated and exported to a running list in Excel that you summarize with a pivot table, converted to a &lt;STRONG&gt;pandas DataFrame&lt;/STRONG&gt;, or even submitted as edits to a hosted table in your portal for summarizing in a Dashboard.&lt;/P&gt;&lt;P&gt;Again, none of the above methods is perfect, but hopefully they will help you get closer to the information you're looking for.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 14:32:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/view-item-usage-usage-by-user-in-portal/m-p/1026274#M10565</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-02-12T14:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: View Item usage usage by user in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/view-item-usage-usage-by-user-in-portal/m-p/1082651#M11275</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;I was wondering if anyone provided any solution to your query? We are trying to achieve the same thing, i.e. which user is viewing which portal item but I cannot find a way of doing it with the Python API.&lt;/P&gt;&lt;P&gt;Any thoughts/ideas would be very helpful!&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Dimi&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 12:32:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/view-item-usage-usage-by-user-in-portal/m-p/1082651#M11275</guid>
      <dc:creator>DimiKPT</dc:creator>
      <dc:date>2021-07-26T12:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: View Item usage usage by user in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/view-item-usage-usage-by-user-in-portal/m-p/1143877#M11991</link>
      <description>&lt;P&gt;Hi There&lt;/P&gt;&lt;P&gt;Just wondering if anyone has had any luck with this. Would really love to do something similar as initial poster.&lt;/P&gt;&lt;P&gt;Is there anything in ArcGIS Monitor? Or perhaps even PowerBI?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 23:07:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/view-item-usage-usage-by-user-in-portal/m-p/1143877#M11991</guid>
      <dc:creator>GIS_System_AdministratorSunshi</dc:creator>
      <dc:date>2022-02-14T23:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: View Item usage usage by user in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/view-item-usage-usage-by-user-in-portal/m-p/1247723#M13081</link>
      <description>&lt;P&gt;The code above returns the TOTAL numViews. Is there a parameter in the search query that would return numViews from a begin and end date/time?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 18:47:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/view-item-usage-usage-by-user-in-portal/m-p/1247723#M13081</guid>
      <dc:creator>JimO_Leary2</dc:creator>
      <dc:date>2023-01-12T18:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: View Item usage usage by user in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/view-item-usage-usage-by-user-in-portal/m-p/1247745#M13082</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/359492"&gt;@JimO_Leary2&lt;/a&gt;&amp;nbsp; Total views are the &lt;EM&gt;only&lt;/EM&gt; thing you can get on Portal; you can't specify time ranges, at least right now. But if you pipe the total views into a table at regular intervals, the resulting table can be sliced by the timestamp and basic math can give you those date-bound counts.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 19:25:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/view-item-usage-usage-by-user-in-portal/m-p/1247745#M13082</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-01-12T19:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: View Item usage usage by user in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/view-item-usage-usage-by-user-in-portal/m-p/1495152#M15281</link>
      <description>&lt;P&gt;I figured that was the only way to really get a historical overview. Wish I would have seen this earlier. There is no parameter for a begin and end point in time. It's always like that last sip of water in a cup that just couldn't quinch it.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 03:46:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/view-item-usage-usage-by-user-in-portal/m-p/1495152#M15281</guid>
      <dc:creator>PressIyamu</dc:creator>
      <dc:date>2024-06-20T03:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: View Item usage usage by user in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/view-item-usage-usage-by-user-in-portal/m-p/1526827#M15619</link>
      <description>&lt;P&gt;Did anyone ever find a solution to this?&lt;/P&gt;&lt;P&gt;We're also looking to achieve the same thing to help understand data usage from a governance perspective.&lt;/P&gt;&lt;P&gt;The only alternative I can see is sending an email to our 400+ users asking which content they're using.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2024 08:54:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/view-item-usage-usage-by-user-in-portal/m-p/1526827#M15619</guid>
      <dc:creator>matt_g_g</dc:creator>
      <dc:date>2024-08-25T08:54:28Z</dc:date>
    </item>
  </channel>
</rss>

