Google Drive list API - Empty list - google-drive-api

I am using google drive list api. For one G-Suite domain I get empty list. I tried in API explorer, same result.
Tried for another G-Suite domain, I get response as described in the documentation, works both in API explorer and my code.
What is it I am missing here?

The method Drives: list lists only the shared drives of a Google Drive user.
If the resulting list is empty, this means that there is no shared drive associated with the given account
To create a new shared drive, follow the corresponding instructions
After successfully creating a shared drive, it will show up in the results of Drives: list

Related

Google Drive API does not work when trying to query files in My Drive, no exception thrown, just empty list while my drives actually contains files

Was trying to use Google Drive API (Java) in my android project. I logged in successfully, and was able to use the list() method successfully, but the getFiles() method return a empty List whereas my google drive actually having more than 100 files. I couldn't find any answer regarding this.

How do I list a specific user's permissions on a teamdrive using Google Apps Script?

Per the Google API reference it looks like a Drive.Permissions.List call would work on a Teamdrive, however I am getting a 404 error when using the following:
Drive.Permissions.list(TEAMDRIVEID);
Is there an alternative way to get a specific user's permissions to a specific drive?

Determine Script Authorization Requirements

I have a script associated with a spreadsheet which requests Authorization. When granted and I look at the Permissions associated with my account the script has the following:
Has some account access, including Google Docs
Google Docs
View and manage your documents in Google Drive
View and manage your spreadsheets in Google Drive
Additional access
View and manage your forms in Google Drive
I am surprised it is going to this level as all the function calls I am seeing are either getting an active item or getting the sheet by name (not the file, a tab inside the file). Outside of an HTML service form, there is nothing I see which should call a Google Form item. Nor do I see anything about a Doc. Just Spreadsheet items.
Is there any way to determine where the various authorized access items are IN the code without trial and error?

Is there a way to access Google Docs' new Action Items via the Drive API?

The Drive API allows access to Comments and Changes on documents but I don't see the new action items feature in the reference documentation.
Is there a way to perform any of the standard CRUD operations on them: get a list of them, get their properties, add new ones, modify them, etc.?
I'm actually interested in doing this through Google Apps Script but I understand that even Comments are only available in the Drive API, so I suspect if there's a way to do it it would be through the Drive API first.

Search file in other google drives

I have a google drive where am storing few google sheets. My java web application is able to search a file that is present in my own google drive using Javascript API. Is there a way to search for a specific files in other's google drive via code? i will be getting the shareable link to the google drive am supposed to search. can this be done? As far as i checked this is not possible. Also there is no where in google document that says i can search files in other's drive. Kindly someone confirm.
This is an OAuth question, not a GDrive question.
The account that the GDrive API will apply to is determined by the Access Token that it is called with. So, if you can get an Access Token for somebody else's Drive, then you can use that to search their drive. How you would get such a token will depend very much on the details of your use case and the trust relationship.