Take ownership of other users Drive-files using Google Apps Script

前端 未结 2 1583
谎友^
谎友^ 2021-01-15 04:15
Intro

I\'m tasked with creating a shared Google Drive folder-structure for my company. I want everything in (or parts of) it to be owned by the sam

2条回答
  •  广开言路
    2021-01-15 04:51

    See & star Issue 2756: Server error for illegal ACL change

    Summary: Only the owner of a file can change ownership. Admin accounts don't own user's files, so they have no special privileges in this respect.

    As noted in @HenriqueAbreu's comment, a possible work-around utilizing the Drive API (not Google Apps Script) to impersonate domain users is described in this answer, unfortunately without implementation details.

提交回复
热议问题