miles_cross
3 months agoContributor
Find last login time for user accounts using API
Hi - Where would a person find the last login time for accounts that login with the API? I have checked Access Sessions and the report Inactive User and the API sessions do not get logged. I am not...
- 3 months ago
Others have said it is not possible via the API, but that information is available via a GQL query if you are familiar with that. It would return the UNIX epoch time for their last login in the results, which can easily be converted with some programming. Let me know if you would like some more details on it. Here is a simple query you can run by going to https://{yourSL1URL}/gql
{ accounts{ edges{ node{ id user lastLoginTime } } } }
This only returns the first 10 results by default, and there are some search options you can do with it as well. Lots of fun stuff with it really.