Reputation: 8815
I'm working on an integration to stream Google Meet recordings to a 3rd party file storage service. Here's the rough workflow I'm following
My question is what OAuth scopes I need to make this work. The drive.file
scope will only give me access to files my app created. The meeting recordings are created by Google Meet. The drive.apps.readonly
scope gives me access to all files if the user installs my app. Could I create a Google Workspace Marketplace app and use that scope to download the file? Will the downloadUrl
in the file object work with a token that only has drive.apps.readonly
?
I'm trying to avoid using any restricted scope if possible.
Upvotes: 0
Views: 1577
Reputation: 6481
If you check this page, About Auth, and this page, OAuth Verification FAQs you'll see that Drive is inherently restricted due to the nature of the service. Since your app does not create the video, it will require a restricted scope to fetch the video created by meet.
I believe that https://www.googleapis.com/auth/drive.readonly
will work for your purposes.
Upvotes: 0