[GDrive] Modify search parameters to search shared drives #491
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's being changed:
This PR modifies the Google Drive connector to include shared drives in the search results.
By default Google Drive with OAuth only returns files from "My Drive" (your own drive). Two arguments are being passed to the list files call to make it include shared drives in the results:
supportsAllDrives
- Whether the requesting application supports both My Drives and shared drives.includeItemsFromAllDrives
- Whether both My Drive and shared drive items should be included in results.These arguments are documented here:
https://developers.google.com/drive/api/reference/rest/v3/files/list#query-parameters
With service accounts, it's searching shared drives by default.
How did you test this change (include any code snippets, API requests, screenshots, or gifs):