I'm using the ArcGIS Python API to report on items owned by users in my ArcGIS Online organization.
For each user I loop through their items and check the shared_with property to see which groups the item is shared with but it's always blank even on items I have manually checked that are shared with groups.
Has anyone run into this problem before?
A snippet from my script is below, the last line is causing the problem.
for user in gis.users.search(max_users=9999):
for folder in user.folders:
for item in user.items(folder):
if not item.shared_with["groups"]:
The result in my watch window in VS code is below.
For additional info, I'm an admin in the organisation and I'm using version 1.7.0 of the python API.