Hi There, I am trying to build a script that searches all the users and their last login in our portal environment (10.9.1). The code snippet below works fine but it has a limit of 10000. I found that advanced_search allows returns all the users but I am not able to get the right syntax. Just wanted to check the proper syntax for a search that brings all the users.
search = gis.content.advanced_search(query='', max_items=100)
users = arcgis.gis.UserManager(gis)
allUsers = users.search(query = '*', max_users = 10000)
for user in allUsers:
if user.lastLogin != -1:
last_accessed = time.localtime(user.lastLogin/1000)