I have a simple Web Application (built using Django) and I am trying to use the Python Google drive API to access a personal Google Drive (not a Workspace).
My Web application is using credentials created under OAuth2, which is authorized by our charities gmail account - an account managed by me on behalf of the charity.
My Web application is able to create folders and upload files to this Google Drive, and they show up on the Browser interface (and can be seen by other who have access to this drive.
My application is able to use the drive.files().list() and drive.files.get() interfaces to see files and folders that have been created by this code.
However my application cannot see folders created by the same user through the Browser interface - despite the Browser showing that the owners is exactly the same as the owner of those folders created by the Application code. Any attempt to find those folders or get their data using the id results in a 404 error.
I can’t even get metadata on those Browser created folders using their file Ids- it is as if those files don’t exist within the Drive.
My first assumption was that the issue was to do with scopes, so my application currently initializes the drive service using the “…/auth/drive.file”,”…/auth/drive",
“…/auth/drive.install”,
“…/auth/drive.metadata.readonly” scopes.
I am now at a complete loss as to why my App can only see the files and folders it creates, but can’t see files and folders created by the same user via the Browser.
It must be something fundamental - I can’t imagine that the API is designed this way.