Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access to all files on a user's Google Drive

The api's for SkyDrive and Dropbox have options for managing the user's entire drive. For Google Drive, the drive.file scope seems to give only access to the files created by the app. Is there a scope for Google Drive that gives access to the entire drive?

like image 781
Jon Saalbach Avatar asked Apr 26 '12 10:04

Jon Saalbach


People also ask

Can Google admin see all files on drive?

Even as an admin you cannot access users files directly. To access other user's files, as an admin you need to impersonate the users and then perform actions in their behalf. This is achieved by using a service account with domain wide delegation of authority.

Can I access someones Google Drive?

Send a link to a shared fileIf you've set a file, folder or Google Doc to "Anyone with the link" or "Public," you can send the link to another person and they'll be able to access it. Go to drive.google.com.

How do you see all of the files you are the owner of In Google Drive?

When you click on Owner, Type, More, a drop-down menu will appear below the search box. Don't put anything in the search box. Instead, select Owned by Me to see all your own files. Or choose whatever other option is appropriate for your needs.


1 Answers

Edit: The below answer was correct, but the latest version of the Drive API allows requesting of a full scope with https://www.googleapis.com/auth/drive. The Documents List API is no longer needed for this use case. See https://developers.google.com/drive/scopes#requesting_full_drive_scope_for_an_app

To be precise the Drive API gives access to Files created by the app and files that the user has opened with the app from the Drive UI (through open-with).

To manipulate all of the Drive files of the user you can use the Google Document List API . Though we currently forbid Drive applications (the ones that have get integrated in the Drive UI through the Open-with and Create dialogs) to request access to the Document List API as we want to keep Drive application on a per-file security model. (Basically adding the Document List scope in the Drive SDK settings raises an error).

like image 167
Nicolas Garnier Avatar answered Nov 07 '22 05:11

Nicolas Garnier