Hi,
ArcGIS Pro 2.9.8
ArcGIS Enterprise 10.9.1 (high availability)
We have configured ArcGIS Pro licenses inside Portal for ArcGIS (named user licenses). We are able to assign those licenses to users through the Portal interface. Now, we try to do the same using ArcGIS API for Python.
When I retrieve the license object :
from arcgis.gis import GIS
portal_url = 'portalurl
portalUsername = 'username'
portalPassword = 'password'
gis = GIS(portal_url, portalUsername, portalPassword)
license= gis.admin.license
print(license)
licenses = license.all()
print(licenses)
for lic in licenses:
print(lic)
The "license" object is empty, I don't find a way to get my licenses so I can assign a license to a user.
Any clue why my license object is empty ?
Is there another way to assign ArcGIS Pro licenses from the Portal using ArcGIS API ?
Thanks in advance for any suggestions.
Regards,
Hervé