javascript - Set Oauth permissions to specific Drive file? -


i want read 1 specific, shared, private spreadsheet in user's drive (it's private extension group of users access spreadsheet , i'm using oauth determine whether user shared spreadsheet - or there better way?).

is there way limit scope / permission 1 file doesn't request access user's entire drive?

there 2 ways can limit permissions.

  1. you can request read https://www.googleapis.com/auth/drive.readonly. not you're looking for, thought i'd include completeness.
  2. you can request https://www.googleapis.com/auth/drive.file limits access files created app, or shared it. option, need go drive , share file app.

edit: tried this, using non service account, , doesn't work. whether works service accounts, or bug, have no idea. possible workaround maybe use picker.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -