In [4]:
import arcrest
In [7]:
username = ""
password = ""
sh = arcrest.AGOLTokenSecurityHandler(username=username, password=password)
admin = arcrest.manageorg.Administration(securityHandler=sh)
content = admin.content
In [19]:
# Get the logged in user
currentUser= content.users.user()
In [20]:
# Iterate through all content in each folder
for folder in currentUser.folders:
currentUser.currentFolder =folder['title']
print ('--------------------------------------------')
print ("In folder: %s" % folder['title'])
for item in currentUser.items:
print(" - %s" % item.title)
In [ ]: