<?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 Granting Licenses to New Users - gis.license.all() returns empty list in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/granting-licenses-to-new-users-gis-license-all/m-p/1167117#M7335</link>
    <description>&lt;P&gt;I'm working on a notebook to migrate our organization's enterprise usernames over to email addresses (to facilitate Azure single sign-on). I have most of the kinks worked out, but the one thing I haven't been able to automate just yet is the licensing. I can't delete any users that have licenses assigned, and I want to assign the same licenses to the replacement username. My problem is that the license manager seems to think I don't have any licenses. However, when I go through the Portal GUI, I can see that I have licenses available and assigned for Pro, Insights, etc.&lt;/P&gt;&lt;P&gt;Here's an example of what I get when I try license.all() or license.get():&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JCGuarneri_0-1650648508135.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39649i092AAE8303451423/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JCGuarneri_0-1650648508135.png" alt="JCGuarneri_0-1650648508135.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here's what I get when I pull the provisions property for a user with Pro and Insights:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JCGuarneri_1-1650648647089.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39651iA788B4E6879CA069/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JCGuarneri_1-1650648647089.png" alt="JCGuarneri_1-1650648647089.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any thoughts? This is my first time working with the license manager, so it's entirely possible I've missed something obvious.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2022 11:05:04 GMT</pubDate>
    <dc:creator>JCGuarneri</dc:creator>
    <dc:date>2022-04-28T11:05:04Z</dc:date>
    <item>
      <title>Granting Licenses to New Users - gis.license.all() returns empty list</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/granting-licenses-to-new-users-gis-license-all/m-p/1167117#M7335</link>
      <description>&lt;P&gt;I'm working on a notebook to migrate our organization's enterprise usernames over to email addresses (to facilitate Azure single sign-on). I have most of the kinks worked out, but the one thing I haven't been able to automate just yet is the licensing. I can't delete any users that have licenses assigned, and I want to assign the same licenses to the replacement username. My problem is that the license manager seems to think I don't have any licenses. However, when I go through the Portal GUI, I can see that I have licenses available and assigned for Pro, Insights, etc.&lt;/P&gt;&lt;P&gt;Here's an example of what I get when I try license.all() or license.get():&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JCGuarneri_0-1650648508135.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39649i092AAE8303451423/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JCGuarneri_0-1650648508135.png" alt="JCGuarneri_0-1650648508135.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here's what I get when I pull the provisions property for a user with Pro and Insights:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JCGuarneri_1-1650648647089.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39651iA788B4E6879CA069/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JCGuarneri_1-1650648647089.png" alt="JCGuarneri_1-1650648647089.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any thoughts? This is my first time working with the license manager, so it's entirely possible I've missed something obvious.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 11:05:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/granting-licenses-to-new-users-gis-license-all/m-p/1167117#M7335</guid>
      <dc:creator>JCGuarneri</dc:creator>
      <dc:date>2022-04-28T11:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Granting Licenses to New Users - gis.license.all() returns empty list</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/granting-licenses-to-new-users-gis-license-all/m-p/1176877#M7425</link>
      <description>&lt;P&gt;Did you get any resolution on this? I am seeing the same issue after an update from 10.7.1 to 10.9.1.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 15:52:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/granting-licenses-to-new-users-gis-license-all/m-p/1176877#M7425</guid>
      <dc:creator>TeddyArnold</dc:creator>
      <dc:date>2022-05-24T15:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Granting Licenses to New Users - gis.license.all() returns empty list</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/granting-licenses-to-new-users-gis-license-all/m-p/1176888#M7426</link>
      <description>&lt;P&gt;Unfortunately, I haven't. In the end I decided that for the number of users I have licenses assigned to, it will be easy enough to just manually unassign licenses and assign them to the new users after the notebook runs.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 16:07:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/granting-licenses-to-new-users-gis-license-all/m-p/1176888#M7426</guid>
      <dc:creator>JCGuarneri</dc:creator>
      <dc:date>2022-05-24T16:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Granting Licenses to New Users - gis.license.all() returns empty list</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/granting-licenses-to-new-users-gis-license-all/m-p/1176901#M7427</link>
      <description>&lt;P&gt;Thanks for the quick response! Unfortunate as it may be.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 16:24:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/granting-licenses-to-new-users-gis-license-all/m-p/1176901#M7427</guid>
      <dc:creator>TeddyArnold</dc:creator>
      <dc:date>2022-05-24T16:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Granting Licenses to New Users - gis.license.all() returns empty list</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/granting-licenses-to-new-users-gis-license-all/m-p/1367030#M9482</link>
      <description>&lt;P&gt;I also have the same issue. It works perfectly for our AGOL users, but not for the enterprise users. We are upgrading to enterprise 10.9.1, so hopefully it'll work after the upgrade.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 22:22:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/granting-licenses-to-new-users-gis-license-all/m-p/1367030#M9482</guid>
      <dc:creator>YukoOliver</dc:creator>
      <dc:date>2024-01-05T22:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Granting Licenses to New Users - gis.license.all() returns empty list</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/granting-licenses-to-new-users-gis-license-all/m-p/1687463#M11868</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/347312"&gt;@JCGuarneri&lt;/a&gt;&amp;nbsp;Did you ever figure this out? Running into the same issue. Can pull it fine via provisions property in ArcGIS Online. But that returns an empty list in Enterprise Portal (11.5), and I also get empty list using gis.admin.license.all()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit (3/2/2026): For anyone who comes across this with the same issue, I think maybe what's happening is that user.provisions is specifically for add-on licenses that have been assigned to a user, not licenses that come inherently with an account type. For example, a Creator user type comes with ArcGIS Pro Basic (as of writing this in March 2026), it isn't manually assigned and can't be removed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I ended up doing was looking at&amp;nbsp;gis.users.license_types (which returns a dictionary of user account types in your org and all the apps/bundles/extensions that the account comes with) and pulling info from it based on the user's license id (user.userLicenseTypeId). Here is a function I wrote to pull the account's inherent ArcGIS Pro license, extensions, app bundles, and a full list of apps within those bundles. The "user" input in the function would be a user object, like you'd get from gis.users.search().&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def builtin_licenser(user):
    utypes = gis.users.license_types # this returns a list of dictionaries, one for each account type and containing nested dictionaries of apps/extensions
    usertype = user.userLicenseTypeId # get user type id (i.e. creatorUT)
    for u in utypes:
        if usertype == u['id']:

            prolist = []
            bundlelist = []
            fullapplist = []
            extlist = []

            for a in u['apps']: # look through apps dict
                if a['type'] == 'App Bundle': # list app bundles (i.e. Essential Apps, Field Apps, etc.)
                    bundlelist.append(a['title'])
                    for app in a['apps']:
                        fullapplist.append(app['title'])
                else:
                    if a['title'] == 'ArcGIS Pro': # if ArcGIS Pro is included, grab tier (entitlement)
                        arcpro_type = (a['title'] + ' ' + a['entitlements'][0])
                        prolist.append(arcpro_type)
                    else: # grab any other apps included that are not within the bundles
                        fullapplist.append(a['title'])
            for e in u['extensions']: # look through extensions dict
                extlist.append(e['title'])

            result_dict = { # return all this info in a dict
                'Pro': ', '.join(prolist),
                'Bundles': ', '.join(bundlelist),
                'Apps': ', '.join(fullapplist),
                'Extensions': ', '.join(extlist)
            }

            return result_dict&lt;/LI-CODE&gt;&lt;P&gt;Hope that helps point someone else in the right direction.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2026 22:20:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/granting-licenses-to-new-users-gis-license-all/m-p/1687463#M11868</guid>
      <dc:creator>AaronKoelker</dc:creator>
      <dc:date>2026-03-02T22:20:54Z</dc:date>
    </item>
  </channel>
</rss>

