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:
|
for i in aa:
|
||||||
ce = json.loads(open(i, 'r').read())['client_email']
|
ce = json.loads(open(i, 'r').read())['client_email']
|
||||||
batch.add(drive.permissions().create(fileId=did, supportsAllDrives=True, body={
|
batch.add(drive.permissions().create(fileId=did, supportsAllDrives=True, body={
|
||||||
"role": "fileOrganizer",
|
"role": "organizer",
|
||||||
"type": "user",
|
"type": "user",
|
||||||
"emailAddress": ce
|
"emailAddress": ce
|
||||||
}))
|
}))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue