How To: Automate assignment of ArcGIS Pro licenses
The following REST requests can be used to automate the assigning and revoking of ArcGIS Pro licenses provisioned to ArcGIS Online. These can be sent using any language that can send HTTP requests, such as Python.
Only organization administrators or users assigned a custom role that includes the Manage Licenses privilege can manage ArcGIS Pro licenses.
When automating this workflow, always include both a valid token in the request as well as specifying the format in which the response should be returned. Additional required parameters are listed in tables below the requests.
The URL Key can be hard-coded, or the URL Key can be determined from a self-call.
- Determine the ID of your ArcGIS Pro listing
Use the following request to determine the itemId of the listing with the title ArcGIS Pro: Listings Search
- Determine which licenses are available
Use the following request to determine how many licenses you have:
Use the following request to determine how many licenses have already been assigned:
http://<URL KEY>.maps.arcgis.com/sharing/rest/content/listings/<LISTING ID>/userEntitlements
- Assign/Revoke licenses that are available to the user(s)
Use the following post request to assign or revoke licenses, you can include a list of users if you are provisioning to multiple users. To revoke licenses, simply include an empty list:
http://<URL KEY>.maps.arcgis.com/sharing/rest/content/listings/<LISTING ID>/provisionUserEntitlements