Arcgis Online script to get user connection detail

2120
6
08-02-2016 05:08 AM
FlavieMORAUX1
Occasional Contributor

Hi Everyone,

I have a question about arcgisonline scripting (python/api rest). Are there any way to retrieve the list of connections for a given user? Or the count of connection?

This will allow me to see if my users uses frequently arcgis online, or not.

I see it neither in ArcGis Python API nor in ArcGIS API REST.

Thanks in advance.

Flavie

0 Kudos
6 Replies
AlexanderBrown5
Occasional Contributor II

Flavie,

You can check out Tom Swanson's AGO get Info.  You will need visual studio of some sort to open and run.

GitHub - tswanson/AGOgetInfo: Output all AGO content for Org to a csv file

I have seen this in action and believe it is exactly what you are looking for.

Regards,

Alex

0 Kudos
FlavieMORAUX1
Occasional Contributor

Alex,

Thank you for the answer.

I have some problem when using tool (Could not establish trust relationship for the SSL/TLS...). It's propably related to my proxy?

I will try from my home, so without proxy.

Wait and see...

Flavie

0 Kudos
FlavieMORAUX1
Occasional Contributor

Hi Alex,

I success to run the tools, but i don't get needed information.

The tool just return :

- account creation date

- account modification date.

Thanks anyway,

Flavie

0 Kudos
KellyGerrow
Esri Frequent Contributor

You can query this information using the users call in the rest API:

ArcGIS REST API

There are returned parameters for date created, date modified and last login.

-Kelly

0 Kudos
FlavieMORAUX1
Occasional Contributor

The problem is that I want the list of all connections for a given user, not only the last date. Actually, I want to calculate a connection frequency indicator.

Otherwise another solution, call API REST every day.

0 Kudos
FlavieMORAUX1
Occasional Contributor

Hi Kelly,

I study API REST method User and I have a question about it. Property "lastLogin" return the last login date, but sometime it return "0" or "-1" value when user has never logged. So what is the difference between "0" and "-1".

Thanks,

Flavie

0 Kudos