<?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 Python API Not Returning Enterprise Licensing Information in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-not-returning-enterprise-licensing/m-p/1286211#M8660</link>
    <description>&lt;P&gt;When trying to get our Pro licensing information from our Enterprise, nothing (NoneType) is returned, even though the majority of our Pro licenses are configured to use our Enterprise accounts.&lt;/P&gt;&lt;P&gt;Is this a known limitation of Enterprise?&amp;nbsp; Is it due to our Enterprise version (10.9.1)?&amp;nbsp; Is it due to the arcgis module version (1.9.1)?&lt;/P&gt;&lt;P&gt;Below is the code I'm using, and based on the &lt;A href="https://developers.arcgis.com/python/guide/administering-your-gis/#managing-named-user-licenses-and-entitlements" target="_blank" rel="noopener"&gt;Python API documentation&lt;/A&gt; the way I read it, this should be doable in both ArcGIS Online and Enterprise.&amp;nbsp; I've tested the same code below on our AGO Organization and it works as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcgis

portal_url = '...portal url...'
portal_user = '...user name...'
portal_pwd = '...user password...'

# connect to portal
p = arcgis.GIS(portal_url, portal_user, portal_pwd)

# get pro licensing
pro_licenses = p.admin.license.get('ArcGIS Pro')
print(pro_licenses)

# verify pro licensing is returned
if pro_licenses:
    a = pro_licenses.all()
    for u in a:
        print(u)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the code above on our Enterprise, line 12 returns: None&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2023 16:04:35 GMT</pubDate>
    <dc:creator>mpboyle</dc:creator>
    <dc:date>2023-05-05T16:04:35Z</dc:date>
    <item>
      <title>Python API Not Returning Enterprise Licensing Information</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-not-returning-enterprise-licensing/m-p/1286211#M8660</link>
      <description>&lt;P&gt;When trying to get our Pro licensing information from our Enterprise, nothing (NoneType) is returned, even though the majority of our Pro licenses are configured to use our Enterprise accounts.&lt;/P&gt;&lt;P&gt;Is this a known limitation of Enterprise?&amp;nbsp; Is it due to our Enterprise version (10.9.1)?&amp;nbsp; Is it due to the arcgis module version (1.9.1)?&lt;/P&gt;&lt;P&gt;Below is the code I'm using, and based on the &lt;A href="https://developers.arcgis.com/python/guide/administering-your-gis/#managing-named-user-licenses-and-entitlements" target="_blank" rel="noopener"&gt;Python API documentation&lt;/A&gt; the way I read it, this should be doable in both ArcGIS Online and Enterprise.&amp;nbsp; I've tested the same code below on our AGO Organization and it works as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcgis

portal_url = '...portal url...'
portal_user = '...user name...'
portal_pwd = '...user password...'

# connect to portal
p = arcgis.GIS(portal_url, portal_user, portal_pwd)

# get pro licensing
pro_licenses = p.admin.license.get('ArcGIS Pro')
print(pro_licenses)

# verify pro licensing is returned
if pro_licenses:
    a = pro_licenses.all()
    for u in a:
        print(u)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the code above on our Enterprise, line 12 returns: None&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 16:04:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-not-returning-enterprise-licensing/m-p/1286211#M8660</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2023-05-05T16:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Python API Not Returning Enterprise Licensing Information</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-not-returning-enterprise-licensing/m-p/1286245#M8661</link>
      <description>&lt;P&gt;We use concurrent licensing not named user licensing. So all I ever get from using p.admin.license.all() is [].&lt;/P&gt;&lt;P&gt;I have to use the flexlm tools to read my concurrent license usage.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 17:08:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-not-returning-enterprise-licensing/m-p/1286245#M8661</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2023-05-05T17:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Python API Not Returning Enterprise Licensing Information</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-not-returning-enterprise-licensing/m-p/1287860#M8679</link>
      <description>&lt;P&gt;This issue seemed to be our version of Pro/arcgis module.&amp;nbsp; We recently upgraded from Pro 2.9.5 to 3.1.1 (arcgis module version 2.1.0.2) and the script above is now returning our Pro licensing running on our Portal.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 17:50:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-not-returning-enterprise-licensing/m-p/1287860#M8679</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2023-05-10T17:50:14Z</dc:date>
    </item>
  </channel>
</rss>

