Select to view content in your preferred language

What does lastLogin time for Pro Offline Named User license mean in ArcGIS Online?

206
4
07-27-2024 07:24 AM
Labels (1)
PeterKnoop
MVP Regular Contributor

In our attempt to understand how people in our organization our using offline Named User licensing with Pro, we have been collecting a daily snapshot of who has taken their license offline. One of the parameters available from userEntitlements/[userName] (ArcGIS REST API) is lastLogin. This appears to be the same as the “Last used” date displayed for a user in ArcGIS Online (Organization → Licenses → Add-on licenses → ArcGIS Pro → View license activity).

What does “lastLogin” or “Last used” mean?

It doesn’t appear to be the date a user last logged into our ArcGIS Online organization from ArcGIS Pro while online. What is it tied to?

4 Replies
ChristopherCounsell
MVP Regular Contributor

Hi Peter, nice to meet you last week!

The JSON Response example has a comment that answers your question. 

"lastLogin": -1, // timestamp (in ms from epoch) when user last logged in to this app, -1 implies never

https://developers.arcgis.com/rest/users-groups-and-items/user-entitlements/

ArcGIS logins record what the user is signing in from and it looks like they put it to good use here.

0 Kudos
PeterKnoop
MVP Regular Contributor

Nice to meet you as well, Christoper! 

Unfortunately that is not what we are observing. I'm wondering now if maybe it is tied specifically to the Portal that is active. So if you are logged into multiple Portals, and the Portal from which you have taken your Pro license offline is not the active portal, but you are logged into that Portal, then lastLogin does not get updated as expected?

We have users that use our ArcGIS Online orgnaization to manage their Pro license, however, they may be connected to a different AGOL organization or an Enterprise portal as their active portal.

ChristopherCounsell
MVP Regular Contributor

So if you are logged into multiple Portals, and the Portal from which you have taken your Pro license offline is not the active portal, but you are logged into that Portal, then lastLogin does not get updated as expected?

That sounds right to me? Users login to portal, take Pro licence offline.

They'd need to have another login event from ArcGIS Pro to the licensing portal for it to record with a new date? My understanding is it's recording when the user logged in from Pro. Not if they're currently logged in. 

If you want better metrics on usage frequency you'd need to adjust their offline behaviour (make them set the portal as the licensing portal and prevent offline licence checkouts).

0 Kudos
PeterKnoop
MVP Regular Contributor

Further testing unfortunately reveals that the lastLogin or Last used values do not update, regardless of when you are online, and which portal you are logged into and/or from which portal you have taken your license offline. It appears to only update when you return your license.

The value appears to solely reflect the point in time when you take your license offline. It is not helpful for tracking when a user is using Pro online, but with an offline license.

 

0 Kudos