Hi,
I am an admin to our AGOL and I am trying to create a report including list of all collaboration we have in our AGOL. This is not included in the built in Report feature in AGOL.
I am using notebook (script provided to me before) in Pro to generate my other reports both for AGOL and enterprise (list of groups, users. etc.) but I don't have a script to generate list of all our distributed collaboration.
Can someone help me on this please?
*****************************************
import pandas as pd
from arcgis.gis import GIS
gis = GIS("pro")
import time
# convert Unix epoch time to local time
def format_creation_time(obj):
create_time_raw = time.localtime(obj.created/1000)
create_time_formatted = "{}/{}/{}".format(create_time_raw[0], create_time_raw[1], create_time_raw[2])
return create_time_formatted
def format_lastlogin_time(obj):
lastlog_time_raw = time.localtime(obj.lastLogin/1000)
lastlog_time_formatted = "{}/{}/{}".format(lastlog_time_raw[0], lastlog_time_raw[1], lastlog_time_raw[2])
return lastlog_time_formatted
def format_lastmodified_time(obj):
lastmod_time_raw = time.localtime(obj.modified/1000)
lastmod_time_formatted = "{}/{}/{}".format(lastmod_time_raw[0], lastmod_time_raw[1], lastmod_time_raw[2])
return lastmod_time_formatted
***************************************************
Thanks in advanced!