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)
licenseManager.revoke(username=submitter_username,entitlements="*")
Solved! Go to Solution.
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.
Hello Matt,
Working on something similar. Did you find any workaround to this? Getting the same error when trying to remove specific licenses.
Thanks
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.
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.
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!
Got it! I will try some new things based on what you mentioned. Thanks again for the quick responses!