Select to view content in your preferred language

Check In / Out ArcGIS Pro license in SDK

328
5
10-31-2025 11:13 AM
Matthew_Muehlhauser
Regular Contributor

So, I'm working on a project to help with provisioning user licenses / extensions. There's one thing that is throwing a bit of a wrench into this process though: If a user checks out their ArcGIS Pro license, there's nothing I can do to update their user type / provisions. This is for UserType licensing in ArcGIS Online.

Is there a way, in the ArcGIS Pro SDK, to check in/out the ArcGIS Pro license for a user if they've checked it out? I see there's an ArcGIS.Core.Licensing.CheckinLicense / CheckoutLicense, but this seems to be only for extensions and it has a note saying it's only for concurrent licensing anyway?

I just figure that the functionality has to be there somewhere though, because users perform this action themselves in ArcGIS Pro, so I SHOULD be able to access that functionality in the SDK somehow.

0 Kudos
5 Replies
AmnoyAm
Esri Regular Contributor

Hi Mathew,

The mechanics between Concurrent Use (CU) and Named User (NU) licensing are completely different. For CU, there is a license manager that stores a pool of licenses. When ArcGIS Pro is configured for CU license type and starts, it checks out a core license and pre-selected extensions. Once started, the user has the option to check out additional available extension licenses without having to restart the session. As you mentioned in your assessment, this is only for CU licensing.

For Named User, the licenses are assigned to the AGOL or Enterprise users beforehand in the AGOL or Enterprise portal. ArcGIS Pro enables the license and capabilities based on the account used to log into ArcGIS Pro. Technically, all feature licenses assigned are checked out. There is no option to check licenses back in or check out additional licenses with ArcGIS Pro. To make any licensing change, the portal admin must assign/unassign licenses on the portal side. The user will need to restart ArcGIS Pro to enable the newly assigned licenses. Until then, ArcGIS Pro will continue to use the previously assigned licenses.

Let me know if you need further detail or if I missed your question altogether.

Thanks.

0 Kudos
Matthew_Muehlhauser
Regular Contributor

@AmnoyAm So, I think I may not have explained it well in my initial question. But, regardless if you're using Concurrent Licenses or Named Users, you have the option to "Authorize ArcGIS Pro to work offline without Internet connection" (See image below). Once this is checked, the user's User Name license goes into a "disconnected" state in AGOL. In my case, I'm working on an application for updating a user's User Type (CreatorUT, GISProfessionalStdUT, GISProfessionalAdvUT) on the fly without needing admin intervention. But, if the user is "disconnected" I can't change the user type, so I was wondering if the ArcGISPro SDK had a way to exit the offline mode. It's performed by the user in ArcGIS Pro, so I just thought it probably is somewhere, but I may just be looking in the wrong place.

Matthew_Muehlhauser_0-1762964491402.png

 

0 Kudos
AmnoyAm
Esri Regular Contributor

Concerning offline licenses, the short answer is "NO".  When taking licenses offline, you're basically moving the licenses to the local machine.  This is why users can start Pro on or off the network. Any attempt to modify it will cause a offline license to become invalid.  In addition, the user will not be able to return the offline license back to the license portal if it had been tampered with.  As a matter a fact, the application is designed to prevent any licensing change after taking a NU offline.  You cannot change to any other license type until the offline license has been returned.  Also as I explain in the previous response, NU licenses are assigned to the user at the portal level.  You cannot make a UT or add-in extension change from Pro.  

Concurrent License is different but the you cannot make a license change before returning the borrowed licenses.  Can explain that further if necessary.  

0 Kudos
Matthew_Muehlhauser
Regular Contributor

@AmnoyAm So, there's no "tampering" happening. I have a backend API that's handling all the requests and is using the ArcGIS API for Python and the ArcGIS Online REST API for handling User Type / extension assignment or for getting current organizational states. I will be allowing users to select which UT/extensions (if necessary) they need in Pro, which would then make the request to the API to update their user type in AGOL. So, I don't need to alter their offline license. What I would like to do is be able to check back in the license to AGOL so that I can update their UT if they wanted to update it, and then possibly take the license offline again. I mean, I can always tell the user their license is disconnected and they need to return it before they can update it, but it would be nice to be able to bypass that.

0 Kudos
AmnoyAm
Esri Regular Contributor

Unfortunately, the answer is no.  There is no exposed API call to return an offline named user license.  We don't let any licensing related settings change for a user while they are offline because those changes cannot be propagated to the user until they sign back in again.

Perhaps you can post the suggestion in the ArcGIS Ideas section for future consideration.  

0 Kudos