Install Your App
Google Drive lets users install an app by approving an OAuth 2.0 access
request. To prompt users for installation, apps can request the scope
https://www.googleapis.com/auth/drive.install. Users see a dialog like this:
Whenever possible, it's best to request all the Drive scopes an app needs at the same time you request approval to install. This avoids the need to present multiple OAuth dialogs to the user. In order to meet authorization requirements and have basic file access after installation, an app would request these scopes:
https://www.googleapis.com/auth/drive.install https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/userinfo.profile
When users approve these scopes, the app is installed for the user, with access to files that the user creates or opens with the app. See Choose auth scopes and Authorizing Your App with Google Drive for more information about scopes you can request for Drive apps, and how to request them.