Add service accounts to td directly as a manager
This commit is contained in:
parent
18a013bfb6
commit
dfb5286137
|
|
@ -62,7 +62,7 @@ pbar = progress.bar.Bar("Readying accounts", max=len(aa))
|
|||
for i in aa:
|
||||
ce = json.loads(open(i, 'r').read())['client_email']
|
||||
batch.add(drive.permissions().create(fileId=did, supportsAllDrives=True, body={
|
||||
"role": "fileOrganizer",
|
||||
"role": "organizer",
|
||||
"type": "user",
|
||||
"emailAddress": ce
|
||||
}))
|
||||
|
|
|
|||
Loading…
Reference in New Issue