Hi, I'm trying to check if a user has access to any folders. My code at the moment is printing 'User has at least one shared folder' for everyone, but I'm not sure if that's correct. Could someone point me in the right direction please? I'm using Python, and this is my code:
dbx = dropbox.DropboxTeam(oauth2_refresh_token=REFRESH_TOKEN, app_key=APP_KEY, app_secret=APP_SECRET).as_user(team_member_id)
shared_folders = dbx.sharing_list_folders(limit=1)
if shared_folders == None:
print('User has no shared folders')
else:
print('User has at least one shared folder')