Hi all,
Is there a way to check if the user logged in to ArcGIS Online or Portal in Python API
I have a script that publishes zipped shp files to my portal, but before publishing, I would like to check if I am logged in and authenticated to publish
for now, I am using gis.users.me which returns None if am not logged in, but looking for something different than this
from arcgis.gis import GIS
gis = GIS()
print(gis.users.me)
Thank you,
Ahmad