Bug
| Bug ID Number | BUG-000165814 |
|---|---|
| Submitted | March 8, 2024 |
| Last Modified | February 10, 2025 |
| Applies to | ArcGIS API for Python |
| Version found | 2.2.0 |
| Operating System | N/A |
| Operating System Version | N/A |
| Status | In Review |
If the secondary license is expired or not in used by any users, reach out to Esri Support to request removing the license from the organization. If both licenses are needed/in use, modify the script to get and revoke multiple licenses that have the same name using a for loop.
Below is a sample code:
org_licenses=gis.admin.license.all()
D2M_licenses=[]
for l in org_licenses:
if "Drone" in l.properties.listing['title']:
D2M_licenses.append(l)
for license in D2M_licenses:
license.revoke(username="USERNAME", entitlements="*")
Bug ID: BUG-000165814
Software:
Get help from ArcGIS experts
Download the Esri Support App