<?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: Credit usage reports per user using the Python API in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/credit-usage-reports-per-user-using-the-python-api/m-p/1236948#M8079</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/242306"&gt;@PeterGamberg1&lt;/a&gt;&amp;nbsp;I know this is an old post but I just wanted to share some info for reference. To&amp;nbsp;create a credit report for users in your ArcGIS Online organization you can create a &lt;A href="https://doc.arcgis.com/en/arcgis-online/administer/view-status.htm#ESRI_SECTION1_E100CF080D2E49CDBE44B7369878824D" target="_self"&gt;credit report in ArcGIS Online&lt;/A&gt; or similarly in ArcGIS API for Python using gis.admin.usage_reports.credit. You can specify the start time or the timeframe for your report if you need to:&lt;/P&gt;&lt;P&gt;credit&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;start_time&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;time_frame&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;'week'&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;export&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;False&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;start_time: optional datetime, the time to step back from. If None, the current time is used.&lt;/LI&gt;&lt;LI&gt;time_frame: &amp;gt;optional string, is the timeframe report to create. Allowed values: today, week (default), 14days, 30days, 60days, 90days, 6months, year&lt;/LI&gt;&lt;LI&gt;export: optional boolean, if True, a csv is generated from the request. If False, a Panda&amp;amp;rsquo;s dataframe is returned&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For more details, please see our documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.admin.html#agolusagereports" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/api-reference/arcgis.gis.admin.html#agolusagereports&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;MJ&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2022 19:45:33 GMT</pubDate>
    <dc:creator>MJBiazar</dc:creator>
    <dc:date>2022-12-01T19:45:33Z</dc:date>
    <item>
      <title>Credit usage reports per user using the Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/credit-usage-reports-per-user-using-the-python-api/m-p/772214#M772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to return credit usage reports for each user in an Arcgis Online organization using the Python API? And if so, can it be returned for a&amp;nbsp;specific&amp;nbsp;period of time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;A href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.admin.html?highlight=credit#arcgis.gis.admin.CreditManager.credit_usage"&gt;credit manager class&lt;/A&gt; just returns the credit usage for the entire organization.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2019 18:02:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/credit-usage-reports-per-user-using-the-python-api/m-p/772214#M772</guid>
      <dc:creator>PeterGamberg1</dc:creator>
      <dc:date>2019-07-26T18:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Credit usage reports per user using the Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/credit-usage-reports-per-user-using-the-python-api/m-p/772215#M773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/81425" target="_blank"&gt;Peter Gamberg&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;you can use the following code to check the credits availability for each user:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;#Checking credits assigned and available to a user&lt;/SPAN&gt;
api_acc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;users&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'USERNAME'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;"""When you turn on credit budgeting (using the enable() method), 
the User object gets additional properties to 
indicate the assignedCredits and remaining avialableCredits. 
Thus, you can verify as shown below:"""&lt;/SPAN&gt;
api_acc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;assignedCredits
&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;
api_acc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;availableCredits

&lt;SPAN class="string token"&gt;"""As the user continues to use the credits, the availableCredits 
property can be used to check how much is available for that account. 
If a user does not have a limit set, then the total available credits 
in the org become their available credits. The account shown below as 
not custom limit, hence, it inherits the org's total limit.‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍"""&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:38:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/credit-usage-reports-per-user-using-the-python-api/m-p/772215#M773</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2021-12-12T08:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Credit usage reports per user using the Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/credit-usage-reports-per-user-using-the-python-api/m-p/772216#M774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have added an idea for this as I was just trying to do this also. Please upvote it &lt;A _jive_internal="true" href="https://community.esri.com/ideas/17389-arcgis-api-for-python-add-user-parameter-to-creditmanagers-creditusage-method"&gt;here&lt;/A&gt;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2019 20:55:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/credit-usage-reports-per-user-using-the-python-api/m-p/772216#M774</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-10-10T20:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Credit usage reports per user using the Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/credit-usage-reports-per-user-using-the-python-api/m-p/772217#M775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use&amp;nbsp;&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;gis.admin.usage_reports.users().&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;See the sample @&amp;nbsp;&lt;A href="https://community.esri.com/thread/241589-user-credit-usage?start=0&amp;amp;tstart=0"&gt;https://community.esri.com/thread/241589-user-credit-usage?start=0&amp;amp;tstart=0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2019 19:16:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/credit-usage-reports-per-user-using-the-python-api/m-p/772217#M775</guid>
      <dc:creator>Per_Åke_MattiasWallin</dc:creator>
      <dc:date>2019-10-11T19:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Credit usage reports per user using the Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/credit-usage-reports-per-user-using-the-python-api/m-p/1232508#M8020</link>
      <description>&lt;P&gt;I have tried using&amp;nbsp;gis.admin.usage_reports.users() and I get strange results. I get a smaller list than what it in our organization and I get lots of names outside of our organization. I can't figure out why its returning such an odd list.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 22:40:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/credit-usage-reports-per-user-using-the-python-api/m-p/1232508#M8020</guid>
      <dc:creator>LindseyDanforth_Boulder</dc:creator>
      <dc:date>2022-11-16T22:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Credit usage reports per user using the Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/credit-usage-reports-per-user-using-the-python-api/m-p/1236948#M8079</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/242306"&gt;@PeterGamberg1&lt;/a&gt;&amp;nbsp;I know this is an old post but I just wanted to share some info for reference. To&amp;nbsp;create a credit report for users in your ArcGIS Online organization you can create a &lt;A href="https://doc.arcgis.com/en/arcgis-online/administer/view-status.htm#ESRI_SECTION1_E100CF080D2E49CDBE44B7369878824D" target="_self"&gt;credit report in ArcGIS Online&lt;/A&gt; or similarly in ArcGIS API for Python using gis.admin.usage_reports.credit. You can specify the start time or the timeframe for your report if you need to:&lt;/P&gt;&lt;P&gt;credit&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;start_time&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;time_frame&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;'week'&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;export&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;False&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;start_time: optional datetime, the time to step back from. If None, the current time is used.&lt;/LI&gt;&lt;LI&gt;time_frame: &amp;gt;optional string, is the timeframe report to create. Allowed values: today, week (default), 14days, 30days, 60days, 90days, 6months, year&lt;/LI&gt;&lt;LI&gt;export: optional boolean, if True, a csv is generated from the request. If False, a Panda&amp;amp;rsquo;s dataframe is returned&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For more details, please see our documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.admin.html#agolusagereports" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/api-reference/arcgis.gis.admin.html#agolusagereports&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;MJ&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 19:45:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/credit-usage-reports-per-user-using-the-python-api/m-p/1236948#M8079</guid>
      <dc:creator>MJBiazar</dc:creator>
      <dc:date>2022-12-01T19:45:33Z</dc:date>
    </item>
  </channel>
</rss>

