My Problem
I have a GDrive folder of which I want to list the users having access to it. Unfortunately the API doesn't return more than 100 users and the documented solutions to paginate don't work.
(!) Maybe this is related to testing on shared drives - currently I cannot reproduce on non-shared drive folders unfortunately.
What I Tried so far:
I tried the pagination solution as described in the google docs, e.g. I tried:
file_id = "12abcde" # my folder ID
request = service.permissions().list(
fileId=file_id, fields="permissions(type,emailAddress)", supportsAllDrives=True
)
while request is not None:
activities_doc = request.execute()
request = service.permissions().list_next(request, activities_doc)
the request in the loop is always None.
The returned body from the initial request as well doesn't match the one described in the docs.
Does somebody have experience on making this work?