Select to view content in your preferred language

Revoke specific licenses from account

369
5
Jump to solution
01-08-2025 07:51 AM
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)
 
1 Solution

Accepted Solutions
mattkramer
Frequent Contributor

Hey Sameer,

In my case, the licenses were unable to be removed if the current user type was not compatible with the license (Such as a Professional Plus user type having a 3D analyst extension assigned, or a Mobile Worker user type having the Location Sharing add on). By updating the user's user type to one that is compatible with the license, I was able to remove said license (downgrading the Professional Plus user type from the previous example to a creator, for instance). Even though I was able to get this workaround to work, I found just removing all of the licenses and re-adding the ones I wanted to keep on the account to be a little easier.

View solution in original post

5 Replies
SameerAgrawal
Emerging Contributor

Hello Matt,

Working on something similar. Did you find any workaround to this? Getting the same error when trying to remove specific licenses.

Thanks

0 Kudos
mattkramer
Frequent Contributor

Hey Sameer,

In my case, the licenses were unable to be removed if the current user type was not compatible with the license (Such as a Professional Plus user type having a 3D analyst extension assigned, or a Mobile Worker user type having the Location Sharing add on). By updating the user's user type to one that is compatible with the license, I was able to remove said license (downgrading the Professional Plus user type from the previous example to a creator, for instance). Even though I was able to get this workaround to work, I found just removing all of the licenses and re-adding the ones I wanted to keep on the account to be a little easier.

SameerAgrawal
Emerging Contributor

Thank you for your prompt response, Matt! I guessed that removing all and re-adding may be the best way forward. Shouldn't the Professional Plus include 3D Analyst though ( https://www.esri.com/en-us/arcgis/products/arcgis-pro/extensions) - bit confused on that portion. 

0 Kudos
mattkramer
Frequent Contributor

Hey Sameer,

You are correct that the Professional Plus user type includes the 3D Analyst extension. The problem I was facing was that I had an account that had both the Professional Plus user type as well as a separate 3D analyst add-on extension assigned to them, meaning they were double licensed for the 3D Analyst license. I was unable to remove the 3D analyst add-on license from this Professional Plus account until I downgraded them to just a Professional account. We were looking to remove this 3D Analyst add-on so other users could use it, since the original account was already licensed through the Professional Plus user type.

 

Hope this makes sense!

SameerAgrawal
Emerging Contributor

Got it! I will try some new things based on what you mentioned. Thanks again for the quick responses!

0 Kudos