User.lastLogin vs User.modified

930
3
02-24-2020 12:49 PM
FardoshtAmirpanahi2
New Contributor II

What's the difference between lastLogin and modified properties in classarcgis.gis.User(gis, username, userdict=None)?

lastLogin is the last login date of the user.  modified is the date the user was last modified.  From these descriptions one would expect the two properties to be different, but they are not.  They both show the lastLogin.

We need to be able to audit changes (role, user type, password) to the accounts.  modified property has to be designated specifically for this purpose and not be a redundant property for lastLogin

3 Replies
JoshuaBixby
MVP Esteemed Contributor

The ArcGIS API for Python is mostly a Python wrapper for the ArcGIS REST API.  For the user you are looking up, does the REST API show the same dates and times? 

0 Kudos
FardoshtAmirpanahi2
New Contributor II

Both properties return the exact same value "2020-02-24 14:1909".

0 Kudos
JoshuaBixby
MVP Esteemed Contributor

Seeing your result, I will share this question with ArcGIS REST API‌ because whatever question or issue you are having isn't related to Python.

0 Kudos