Select to view content in your preferred language

History of user IDs viewing an item

238
0
08-12-2024 01:49 PM
Status: Open
ScottShield
Occasional Contributor

I would like the ability to view the unique users that have viewed my items in AGOL. Currently we can see item view count over a time period. The same function is available through the API. I belong to a large organization with a decent amount of user churn, understanding who is using my items would help me provide better service. Ideally, I could access this for my items with a standard role, and an admin could see this for any item with the admin role. Modeled after usage function:

viewers(item=None, date_range='7D'as_df=True)

item=None: all items owned by user running the function (or all items in org for an admin)

item=item#: only viewers for that specific item

returns a table with: UserName, item#, view_count