I have this Python code, that shows all files from Google Drive:
files = []
page_token = None
while True:
response = service.files().list(spaces='drive',
fields='nextPageToken, '
'files(id, name)',
pageToken=page_token).execute()
for file in response.get('files', []):
print(F'Found file: {file.get("name")}, {file.get("id")}')
files.extend(response.get('files', []))
page_token = response.get('nextPageToken', None)
if page_token is None:
break
The problem is, it shows only files of mine. What I want to do, is, being administrator of my organization, list all files of other user. Is it possible to do? And if it is, how can I modify the code above in order to obtain that?