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.
- you can request read https://www.googleapis.com/auth/drive.readonly. not you're looking for, thought i'd include completeness.
- 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
Post a Comment