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
|
||||||
}))
|
}))
|
||||||
|
|
@ -74,4 +74,4 @@ batch.execute()
|
||||||
print('Complete.')
|
print('Complete.')
|
||||||
hours, rem = divmod((time.time() - stt), 3600)
|
hours, rem = divmod((time.time() - stt), 3600)
|
||||||
minutes, sec = divmod(rem, 60)
|
minutes, sec = divmod(rem, 60)
|
||||||
print("Elapsed Time:\n{:0>2}:{:0>2}:{:05.2f}".format(int(hours), int(minutes), sec))
|
print("Elapsed Time:\n{:0>2}:{:0>2}:{:05.2f}".format(int(hours), int(minutes), sec))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue