User Credit Usage

600
4
10-10-2019 01:27 PM
MichaelKellyTeck
Occasional Contributor

I want to query the number of ArcGIS Online credits that a user has consumed in the past 24 hours. As things stand with the CreditManager, you can only query the entire organization. Could an additional parameter be added to the credit_usage method whereby you can specify a specific user or list of users?

0 Kudos
4 Replies
GeoJosh
Esri Contributor

Michael,

It doesn't look like it's possible to query credit usage per user at this time using the ArcGIS API for Python. However, I definitely see how this could be useful. Please create a new post under ArcGIS Ideas requesting this functionality.

https://community.esri.com/community/arcgis-ideas 

-Josh

MichaelKellyTeck
Occasional Contributor

Thanks Joshua - idea added here!

Cheers,

Mikie

0 Kudos
Per_Åke_MattiasWallin
New Contributor III

Michael,

You can query individual users credit consumption using  gis.admin.usage_reports.users().  I have attached a simple sample.

MichaelVolz
Esteemed Contributor

Thanks for the example

0 Kudos