Select to view content in your preferred language

Revoke specific licenses from account

63
0
Wednesday
mattkramer
Frequent Contributor

Hello,

I am working on some scripts to assist with the assignment and removal of add on licenses for ArcGIS Pro. I am adding licenses like this:

licenseManager = portal.admin.license.get("ArcGIS Pro")
licenseManager.assign(username=submitter_username,entitlements=requestedLicense)
the "requestedLicense" value would be something like - "spatialAnalystN" which relates to a Spatial Analyst extension for ArcGIS Pro. 
 
My problem is, I cannot do a similar revoke command to remove this license. I have to remove all licenses by doing the following:
 
licenseManager.revoke(username=submitter_username,entitlements="*")
 
Is there a reason that I am unable to put the same "spatialAnalystN" to revoke just this license? When doing this, I get the following error:
 
 Exception: All requested entitlements must be available to this org. (Error Code: 400)
 
0 Kudos
0 Replies