Select to view content in your preferred language

is it possible to query your users in online and find out have active they have been through the API

3945
5
Jump to solution
06-02-2016 06:01 PM
AlistairFox
Regular Contributor

I need to find out if users have been inactive for 90 days. can i do this through the API.

0 Kudos
1 Solution

Accepted Solutions
KellyGerrow
Esri Alum

Hi Alistair,

Try using the users call.​ There is a response parameter of lastLogin which will be in UNIX time as outlined in this documentation. This indicates the last time the user logged into the organization. You will be able to determine it if this more than 90 days old.

-Kelly

View solution in original post

5 Replies
RebeccaStrauch__GISP
MVP Emeritus

I'm not sure about how to do it thru the API, but there are a bunch of tools that are available for looking at activity/usage and other admin items of interest.  If you haven't already check these out...

blog: ArcGIS Online admin tools available on GitHub | ArcGIS Blog

github links (these and more are in the same github repository):

There might be something you can use there without writing your own.

0 Kudos
TimHayes1
Deactivated User

Rebecca, these are great tools. But, is there a way to use them for locally hosted services, meaning they are not hosted on AGOL?

0 Kudos
RebeccaStrauch__GISP
MVP Emeritus

Tim, the original question was about users....are you wanting activity for local users?  Or are you wanting local services (maybe for different thread).

0 Kudos
KellyGerrow
Esri Alum

Hi Alistair,

Try using the users call.​ There is a response parameter of lastLogin which will be in UNIX time as outlined in this documentation. This indicates the last time the user logged into the organization. You will be able to determine it if this more than 90 days old.

-Kelly