<?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: How do I get the actual storage usage of my portal users? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-get-the-actual-storage-usage-of-my-portal/m-p/858773#M4125</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case, ArcGIS API for Python is simply passing along the bogus values being generated by ArcGIS REST API.&amp;nbsp; You might want to ask your question over&lt;A href="https://community.esri.com/space/2132"&gt;ArcGIS REST API&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I say "bogus values" because either the numbers are incorrect of Esri's definition of storageUsage is something very different than what nearly everyone thinks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Apr 2019 19:04:42 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2019-04-08T19:04:42Z</dc:date>
    <item>
      <title>How do I get the actual storage usage of my portal users?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-get-the-actual-storage-usage-of-my-portal/m-p/858772#M4124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm trying to create a script to get the actual storage usage of my portal users. The code I've written is this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;gis &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; GIS(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;profile&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'geogeeks'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;user &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; gis.users.get(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'aitor.calero.masquemapas'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;usrs &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; gis.users.search(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; usr &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; usrs:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;print&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(usr.username &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\t\t&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\t&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;str&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;((usr.storageUsage&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;1024&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;However, it always gives me the same size per user:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;usuario.invitado : 57075573.77636719&lt;BR /&gt;usuarioapps04 : 57075573.77636719&lt;BR /&gt;usuarioapps05 : 57075573.77636719&lt;BR /&gt;usuarioapps06 : 57075573.77636719&lt;BR /&gt;usuarioapps10 : 57075573.77636719&lt;BR /&gt;usuarioapps15 : 57075573.77636719&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Am I doing something wrong? I've also noticed that the size comes in bits. I will be great if you can get it in MB, KB, GB, etc by passing a parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Apr 2019 23:05:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-get-the-actual-storage-usage-of-my-portal/m-p/858772#M4124</guid>
      <dc:creator>AitorCalero_García</dc:creator>
      <dc:date>2019-04-07T23:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the actual storage usage of my portal users?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-get-the-actual-storage-usage-of-my-portal/m-p/858773#M4125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case, ArcGIS API for Python is simply passing along the bogus values being generated by ArcGIS REST API.&amp;nbsp; You might want to ask your question over&lt;A href="https://community.esri.com/space/2132"&gt;ArcGIS REST API&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I say "bogus values" because either the numbers are incorrect of Esri's definition of storageUsage is something very different than what nearly everyone thinks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 19:04:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-get-the-actual-storage-usage-of-my-portal/m-p/858773#M4125</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-04-08T19:04:42Z</dc:date>
    </item>
  </channel>
</rss>

